Skip to content
Snippets Groups Projects
Commit b2bbd1ed authored by Tim-Philipp Müller's avatar Tim-Philipp Müller :tropical_fish:
Browse files

libs: gstcheck: init and clear global mutex and cond variables

parent e10d54b8
No related branches found
No related tags found
No related merge requests found
......@@ -416,6 +416,9 @@ MAIN_SYNCHRONIZE();
#define MAIN_INIT() \
G_STMT_START { \
g_mutex_init (&mutex); \
g_cond_init (&start_cond); \
g_cond_init (&sync_cond); \
_gst_check_threads_running = TRUE; \
} G_STMT_END;
......@@ -459,6 +462,9 @@ G_STMT_START { \
g_list_foreach (thread_list, (GFunc) g_thread_join, NULL); \
g_list_free (thread_list); \
thread_list = NULL; \
g_mutex_clear (&mutex); \
g_cond_clear (&start_cond); \
g_cond_clear (&sync_cond); \
GST_DEBUG ("MAIN: joined"); \
} G_STMT_END;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment