mpegtsbase: Flush more on DISCONT buffers in push mode
authorEdward Hervey <bilboed@bilboed.com>
Thu, 9 Jul 2015 14:59:16 +0000 (16:59 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 9 Jul 2015 16:15:54 +0000 (18:15 +0200)
commit0247dc748972e9c869e63916df37640c09b701c2
tree7d8ac013b03ec2e235817fb564b8416acb7d38c1
parent22df1aefd8106930a91ca7694117cd535adcfb5d
mpegtsbase: Flush more on DISCONT buffers in push mode

When in push mode, we want to discard all previous observations from the
mpegtspacketizer when we get a DISCONT buffer.

This avoids trying to calculate bogus timestamps (estimating them using old
PCR observations).

We only do a hard reset in push-mode. In pull-mode we still need the observations
(in order to seek properly)
gst/mpegtsdemux/mpegtsbase.c