revid: fixed dummyMultiWriter Write func so that it satisfies semantics of io.Writer.Write

This commit is contained in:
Saxon 2019-04-03 11:31:21 +10:30
parent 9bd41b7c3b
commit b9e7c3ff8c
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ func newTstFlvEncoder(dst io.Writer, fps int) (io.Writer, error) {
return &tstFlvEncoder{dst: dst}, nil
}
func (e *tstFlvEncoder) Write(d []byte) (int, error) { return 0, nil }
func (e *tstFlvEncoder) Write(d []byte) (int, error) { return len(d), nil }
// dummyMultiWriter emulates the MultiWriter provided by std lib, so that we
// can access the destinations.