mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +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
|
||||
gst_validate_deinit (void)
|
||||
{
|
||||
g_mutex_lock (&_gst_validate_registry_mutex);
|
||||
_free_plugin_config (core_config);
|
||||
gst_object_unref (_gst_validate_registry_default);
|
||||
_gst_validate_registry_default = NULL;
|
||||
|
||||
_priv_validate_override_registry_deinit ();
|
||||
core_config = NULL;
|
||||
validate_initialized = FALSE;
|
||||
|
||||
g_mutex_unlock (&_gst_validate_registry_mutex);
|
||||
g_mutex_clear (&_gst_validate_registry_mutex);
|
||||
}
|
||||
|
||||
gboolean
|
||||
|
|
Loading…
Reference in a new issue