flvmux: Avoid crash when best pad gets flushed
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Mon, 31 Aug 2020 13:01:32 +0000 (15:01 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 31 Aug 2020 14:19:14 +0000 (14:19 +0000)
commit2d08d16002205040bbaaf589f2294b886ee0e6d2
treecc3e4cd9a5b39026a3a002d88102bcef3d5e426b
parent01594d19b8dfac38226910d1b10231c26133c7f9
flvmux: 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.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/711>
gst/flv/gstflvmux.c