tsdemux: Improve gap detection
authorEdward Hervey <edward@centricular.com>
Fri, 1 Oct 2021 12:36:48 +0000 (14:36 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 18 Oct 2021 11:23:25 +0000 (11:23 +0000)
commitd9b1e1e99f39a638e78078924161a99fd59efbbf
tree9ccf357c4fec29828ffcab4028af1f3ea74f2b38
parent0ff569d408c13e4e9657ba62b6b6bd490129462e
tsdemux: Improve gap detection

We should also take into account whether data is currently pending when checking
for gap on streams. It could very well be that some streams have very low
bitrate (and spread out) data. For those we don't want to push out a gap event.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1179>
subprojects/gst-plugins-bad/gst/mpegtsdemux/tsdemux.c