mirror of https://bitbucket.org/ausocean/av.git
revid/revid.go: in Revid.Start() if errors occurs on call to Revid.setupInput() fall through error check and return err
This commit is contained in:
parent
4c080e9288
commit
5c40c48e97
|
@ -294,9 +294,8 @@ func (r *Revid) Start() error {
|
||||||
r.closeInput, err = r.setupInput()
|
r.closeInput, err = r.setupInput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
r.Stop()
|
r.Stop()
|
||||||
return fmt.Errorf("could not setup input, failed with err: %v", err)
|
|
||||||
}
|
}
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stop closes down the pipeline. This closes encoders and sender output routines,
|
// Stop closes down the pipeline. This closes encoders and sender output routines,
|
||||||
|
|
Loading…
Reference in New Issue