From bea0000340227528cd72daaa78091ec35277e68c Mon Sep 17 00:00:00 2001 From: saxon Date: Fri, 15 Feb 2019 23:55:51 +1030 Subject: [PATCH] stream/mts: creating ring.Chunk so that we can use another loadSender --- revid/senders.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/revid/senders.go b/revid/senders.go index 5a20b94b..65374fd2 100644 --- a/revid/senders.go +++ b/revid/senders.go @@ -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 }