Эх сурвалжийг харах

Fixed ffmpeg not ending bug

Toby Chui 1 жил өмнө
parent
commit
e70fc1693e

+ 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
 		}
 	}()