mirror of https://bitbucket.org/ausocean/av.git
revid: using chunk.WriteTo rather than chunk.Bytes to get data to encoders
This commit is contained in:
parent
b8b26de901
commit
627297ce7e
|
@ -462,12 +462,9 @@ loop:
|
||||||
break loop
|
break loop
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get bytes from the chunk.
|
|
||||||
bytes := chunk.Bytes()
|
|
||||||
|
|
||||||
// Loop over encoders and hand bytes over to each one.
|
// Loop over encoders and hand bytes over to each one.
|
||||||
for _, enc := range r.encoder {
|
for _, e := range r.encoder {
|
||||||
_, err := enc.Write(bytes)
|
_, err := chunk.WriteTo(e)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
r.err <- err
|
r.err <- err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue