mirror of https://bitbucket.org/ausocean/av.git
revid: fixed dummyMultiWriter Write func so that it satisfies semantics of io.Writer.Write
This commit is contained in:
parent
9bd41b7c3b
commit
b9e7c3ff8c
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue