splitmuxsink: When flushing, exit handle_mq_input quickly
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Mon, 16 May 2022 12:40:41 +0000 (14:40 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 17 May 2022 09:24:10 +0000 (09:24 +0000)
commit718d31fe63c734e4cd6b9b05960b69b2f2d9d626
tree0e6a199d0bbeadc3987cb428f57a55722e78351a
parentfd27ee15374c266097902cfd4386f73f406c204e
splitmuxsink: When flushing, exit handle_mq_input quickly

If we just break the loop, we might run into the `gop != NULL` assert
that follows it. Rather, exit immediately with flushing flow.

Also use this flushing mechanism when we release a pad. This avoids
having an extra flag.

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