revid: if start not successfull stop is called to stop output clips routine

This commit is contained in:
Saxon 2019-03-03 13:46:02 +10:30
parent cb206ff92b
commit b5954d3f53
1 changed files with 3 additions and 0 deletions

View File

@ -355,6 +355,9 @@ func (r *Revid) Start() error {
go r.outputClips()
r.config.Logger.Log(logger.Info, pkg+"setting up input and receiving content")
err := r.setupInput()
if err != nil {
r.Stop()
}
return err
}