mirror of https://bitbucket.org/ausocean/av.git
stream/mts: creating ring.Chunk so that we can use another loadSender
This commit is contained in:
parent
b6bf41b17d
commit
bea0000340
|
@ -159,11 +159,11 @@ func (s *mtsSender) failed() {
|
||||||
// fixAndSend uses the discontinuity repairer to ensure there is not a
|
// fixAndSend uses the discontinuity repairer to ensure there is not a
|
||||||
// discontinuity, and if so sets the discontinuity indicator of the PAT packet.
|
// discontinuity, and if so sets the discontinuity indicator of the PAT packet.
|
||||||
func (s *mtsSender) fixAndSend() error {
|
func (s *mtsSender) fixAndSend() error {
|
||||||
err := s.repairer.Repair(s.chunk.Bytes())
|
err := s.repairer.Repair(s.buf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
err = s.ls.load(s.chunk)
|
err = s.ls.load(ring.NewChunk(s.buf))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue