mirror of https://bitbucket.org/ausocean/av.git
revid: check the error returned from mtsEnc
This commit is contained in:
parent
cd3d2388d6
commit
bd76fc3449
|
@ -227,7 +227,10 @@ func (r *Revid) setupPipeline(mtsEnc func(dst io.WriteCloser, rate float64) (io.
|
|||
// as a destination.
|
||||
if len(mtsSenders) != 0 {
|
||||
mw := multiWriter(mtsSenders...)
|
||||
e, _ := mtsEnc(mw, float64(r.cfg.FrameRate))
|
||||
e, err := mtsEnc(mw, float64(r.cfg.FrameRate))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
encoders = append(encoders, e)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue