stream/mts: creating ring.Chunk so that we can use another loadSender

This commit is contained in:
saxon 2019-02-15 23:55:51 +10:30
parent b6bf41b17d
commit bea0000340
1 changed files with 2 additions and 2 deletions

View File

@ -159,11 +159,11 @@ func (s *mtsSender) failed() {
// fixAndSend uses the discontinuity repairer to ensure there is not a
// discontinuity, and if so sets the discontinuity indicator of the PAT packet.
func (s *mtsSender) fixAndSend() error {
err := s.repairer.Repair(s.chunk.Bytes())
err := s.repairer.Repair(s.buf)
if err != nil {
return err
}
err = s.ls.load(s.chunk)
err = s.ls.load(ring.NewChunk(s.buf))
if err != nil {
return err
}