gst: Protect initialization state with a recursive mutex.
authorSebastian Dröge <sebastian@centricular.com>
Sat, 9 Jul 2022 14:04:07 +0000 (17:04 +0300)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 10 Aug 2022 11:31:50 +0000 (11:31 +0000)
commit0f0441564d404cb3a1eca9e711b06bc8ea4b9993
treed38f4cde58608fffc87811feae56d7e1a5409316
parentcc2cc037178a89f4266303fb91152f1e4e54ff53
gst: Protect initialization state with a recursive mutex.

Otherwise a gst_init() call from a plugin would deadlock if the plugin
is loaded as part of registry updating.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/940

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