splitmuxsink: Avoid deadlock on release, harder
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Tue, 26 Jan 2021 15:33:25 +0000 (16:33 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 17 May 2022 09:24:10 +0000 (09:24 +0000)
commitfd27ee15374c266097902cfd4386f73f406c204e
tree5552e09f10f9ba46e4c4f03d5b2942633aad417b
parentbf9092592ea03f5c99f1e6cfc90fe21f6724b3a2
splitmuxsink: Avoid deadlock on release, harder

Unlock after broadcasting and wait for the pad to be free before
relocking the muxer, giving the input probe a chance to react to our
broadcast.

Improves the fix from
https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/838.

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