diff options
author | Thibault Saunier <tsaunier@gnome.org> | 2016-01-19 11:10:49 +0100 |
---|---|---|
committer | Thibault Saunier <thibault.saunier@collabora.com> | 2016-02-23 11:46:07 +0100 |
commit | 2d5c6a749c919cb617101047a831637d1595b139 (patch) | |
tree | 83b49a45b2fa7d2c42a4157e8ec99a95cc85d789 | |
parent | bc66079d2a515f94dfdead4595a8e217964663e8 (diff) |
validate: Make _deinit thread safe
Reviewed-by: Thibault Saunier <tsaunier@gnome.org>
Differential Revision: https://phabricator.freedesktop.org/D698
-rw-r--r-- | validate/gst/validate/validate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/validate/gst/validate/validate.c b/validate/gst/validate/validate.c index 08dd49e..726c431 100644 --- a/validate/gst/validate/validate.c +++ b/validate/gst/validate/validate.c @@ -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 |