Fix ffmpeg processes not terminating.
This commit is contained in:
parent
77b847dde6
commit
4fa977347c
@ -78,12 +78,12 @@ func (s Service) RunConvert(setting ConvertSetting, progress ProgressContract) e
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
err = progress.Run(stdOut, stdErr)
|
errProgress := progress.Run(stdOut, stdErr)
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
err = cmd.Wait()
|
err = cmd.Wait()
|
||||||
|
if errProgress != nil {
|
||||||
|
return errProgress
|
||||||
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user