splitmuxsink: Catch invalid DTS to avoid running into problems later
authorSebastian Dröge <sebastian@centricular.com>
Thu, 27 Apr 2023 13:29:53 +0000 (16:29 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 30 Apr 2023 14:16:00 +0000 (15:16 +0100)
commit35322de964118da3ee5a6bf45a204b41d20a7233
treee2bac660ecfe19f44af71478a67bd99dd3d6022f
parent0e8b726843fe232f35cacf64a45f41de9c46e533
splitmuxsink: Catch invalid DTS to avoid running into problems later

DTS > PTS makes no sense, so we clamp DTS to the PTS. Also if there's a
PTS but no DTS, then assume that PTS=DTS to make sure we're not working
with a much older DTS.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4515>
subprojects/gst-plugins-good/gst/multifile/gstsplitmuxsink.c