Explorar o código

Fixed ffmpeg not ending bug

Toby Chui hai 1 ano
pai
achega
e70fc1693e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      mod/media/transcoder/transcoder.go

+ 1 - 0
mod/media/transcoder/transcoder.go

@@ -73,6 +73,7 @@ func TranscodeAndStream(w http.ResponseWriter, r *http.Request, inputFile string
 	go func() {
 		if _, err := io.Copy(w, stdout); err != nil {
 			//End of video
+			return
 		}
 	}()