mirror of
https://github.com/xfrr/goffmpeg.git
synced 2025-10-07 00:43:38 +08:00
refactor
This commit is contained in:
@@ -220,8 +220,7 @@ func (t *Transcoder) Run(progress bool) <-chan error {
|
|||||||
|
|
||||||
// Run the pipe-in command if it has been set
|
// Run the pipe-in command if it has been set
|
||||||
if t.mediafile.InputPipeCommand() != nil {
|
if t.mediafile.InputPipeCommand() != nil {
|
||||||
err = t.mediafile.InputPipeCommand().Run()
|
if err := t.mediafile.InputPipeCommand().Run(); err != nil {
|
||||||
if err != nil {
|
|
||||||
done <- fmt.Errorf("Failed execution of pipe-in command (%s) with %s", t.mediafile.InputPipeCommand().Args, err)
|
done <- fmt.Errorf("Failed execution of pipe-in command (%s) with %s", t.mediafile.InputPipeCommand().Args, err)
|
||||||
close(done)
|
close(done)
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user