mirror of
https://github.com/xfrr/goffmpeg.git
synced 2025-10-06 08:26:54 +08:00
This makes transcoder.Output() work again.
Since errb is not really handled later on anyway and error from ffmpeg are still printed, I think this change only makes sense. credit to https://github.com/xfrr/goffmpeg/issues/54#issuecomment-616273992
This commit is contained in:
@@ -224,7 +224,6 @@ func (t *Transcoder) Run(progress bool) <-chan error {
|
|||||||
var outb, errb bytes.Buffer
|
var outb, errb bytes.Buffer
|
||||||
if progress {
|
if progress {
|
||||||
proc.Stdout = &outb
|
proc.Stdout = &outb
|
||||||
proc.Stderr = &errb
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If an input pipe has been set, we set it as stdin for the transcoding
|
// If an input pipe has been set, we set it as stdin for the transcoding
|
||||||
|
Reference in New Issue
Block a user