mpegpsdemux: Rework gap sending
authorJan Schmidt <jan@centricular.com>
Tue, 4 Apr 2023 11:50:01 +0000 (21:50 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 12 May 2023 17:24:20 +0000 (18:24 +0100)
commit40cd8d5a96cf3374fb226467c5c13c6cb20782d1
tree04260aec2ef55359b721c36d4c4202e28fc64136
parent0956b94184f2e0fad61a17620faac6259ff0da88
mpegpsdemux: Rework gap sending

Take the gap logic from mpegtsdemux, and don't
send gap events on a stream that's outputting buffers with
no timestamps. Time isn't advancing, but the stream has
buffers - so it's not sparse.

Fixes #2374

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4623>
subprojects/gst-plugins-bad/gst/mpegdemux/gstmpegdemux.c
subprojects/gst-plugins-bad/gst/mpegdemux/gstmpegdemux.h