mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 23:48:53 +00:00
validate: Make _deinit thread safe
Reviewed-by: Thibault Saunier <tsaunier@gnome.org> Differential Revision: https://phabricator.freedesktop.org/D698
This commit is contained in:
parent
bc66079d2a
commit
2d5c6a749c
1 changed files with 6 additions and 0 deletions
|
@ -266,11 +266,17 @@ gst_validate_init (void)
|
||||||
void
|
void
|
||||||
gst_validate_deinit (void)
|
gst_validate_deinit (void)
|
||||||
{
|
{
|
||||||
|
g_mutex_lock (&_gst_validate_registry_mutex);
|
||||||
_free_plugin_config (core_config);
|
_free_plugin_config (core_config);
|
||||||
gst_object_unref (_gst_validate_registry_default);
|
gst_object_unref (_gst_validate_registry_default);
|
||||||
|
_gst_validate_registry_default = NULL;
|
||||||
|
|
||||||
_priv_validate_override_registry_deinit ();
|
_priv_validate_override_registry_deinit ();
|
||||||
core_config = NULL;
|
core_config = NULL;
|
||||||
validate_initialized = FALSE;
|
validate_initialized = FALSE;
|
||||||
|
|
||||||
|
g_mutex_unlock (&_gst_validate_registry_mutex);
|
||||||
|
g_mutex_clear (&_gst_validate_registry_mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
|
|
Loading…
Reference in a new issue