mpegtsmux: Avoid crash when best pad gets flushed
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Mon, 31 Aug 2020 15:17:56 +0000 (17:17 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 19 Oct 2021 01:46:19 +0000 (01:46 +0000)
commit320bc6362b44a11771f856a520a1b4f0a25c2dfa
tree91917dbe9841e3b34c285505eff240ae86d1bf58
parentbb19b5aa96ef420b07ed28291aee81fbef3bfb08
mpegtsmux: Avoid crash when best pad gets flushed

The 'best' pad might receive a flush event between us picking it and us
popping the buffer. In this case, the buffer will be missing.

Similar to https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/711

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1042>
subprojects/gst-plugins-bad/gst/mpegtsmux/gstbasetsmux.c