mirror of
https://github.com/xfrr/goffmpeg.git
synced 2025-10-05 16:06:50 +08:00
Merge branch 'master' into master
This commit is contained in:
@@ -246,6 +246,16 @@ func (t *Transcoder) Run(progress bool) <-chan error {
|
||||
close(done)
|
||||
return
|
||||
}
|
||||
|
||||
// Run the pipe-in command if it has been set
|
||||
if t.mediafile.InputPipeCommand() != nil {
|
||||
if err := t.mediafile.InputPipeCommand().Run(); err != nil {
|
||||
done <- fmt.Errorf("Failed execution of pipe-in command (%s) with %s", t.mediafile.InputPipeCommand().Args, err)
|
||||
close(done)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
err = proc.Wait()
|
||||
go t.closePipes()
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user