From bd76fc3449f780d2d58193e5feb5fa4ce0a4c8fb Mon Sep 17 00:00:00 2001 From: Trek H Date: Sat, 13 Mar 2021 02:33:59 +1030 Subject: [PATCH] revid: check the error returned from mtsEnc --- revid/pipeline.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/revid/pipeline.go b/revid/pipeline.go index 097978e4..13226ead 100644 --- a/revid/pipeline.go +++ b/revid/pipeline.go @@ -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) }