gstreamer: bin: Don't unlock unlocked mutex in gst_bin_remove_func()
authormedithe <medithe@gmx.at>
Tue, 7 Feb 2023 13:43:06 +0000 (13:43 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 7 Feb 2023 17:54:30 +0000 (17:54 +0000)
commita183495fafa05f7d141066e3e70b97c0cc9a53c1
treeb0bffbf2121aebe8101a75fbd05fc7e157ed487e
parentf6e672f27fcac06af58d7ac995551893d36944ce
gstreamer: bin: Don't unlock unlocked mutex in gst_bin_remove_func()

Calling `g_mutex_unlock(mutex)` leads to an undefined behavior if the
mutex is not locked by the current thread.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3910>
subprojects/gstreamer/gst/gstbin.c