decodebin3: fix dead lock when removing pad
authorGuillaume Desmottes <guillaume.desmottes@onestream.live>
Wed, 21 Dec 2022 09:44:40 +0000 (10:44 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 11 Jan 2023 15:06:37 +0000 (15:06 +0000)
commitda696477c6c94b7a39c52325c7f5528ea08a5479
tree35ef77fd1f7e31522ff8c0f75fc4728bbc50f9f6
parentc28bc4492e48e8102ebf88bf4635f73e732b9ea8
decodebin3: fix dead lock when removing pad

gst_element_remove_pad() is triggering a call to
gst_decodebin3_input_pad_unlink() which needs the input lock as well,
resulting in a dead lock.

Fix #1667

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3614>
subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c