Explorar el Código

Fixed ffmpeg not ending bug

Toby Chui hace 1 año
padre
commit
e70fc1693e
Se han modificado 1 ficheros con 1 adiciones y 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
 		}
 	}()