+2008-12-10 Peter Kjellerstedt <pkj@axis.com>
+
+ * libs/gst/check/gstcheck.h: Allow check tests to use
+ MAIN_START_THREADS()/MAIN_STOP_THREADS() multiple times. Also allows
+ CK_FORK=no to be used with multiple check test that use threads.
+
2008-12-09 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* gst/gstutils.c: (gst_element_get_compatible_pad):
G_STMT_START { \
_gst_check_threads_running = TRUE; \
\
- mutex = g_mutex_new (); \
- start_cond = g_cond_new (); \
- sync_cond = g_cond_new (); \
+ if (mutex == NULL) { \
+ mutex = g_mutex_new (); \
+ start_cond = g_cond_new (); \
+ sync_cond = g_cond_new (); \
+ } \
} G_STMT_END;
#define MAIN_START_THREAD_FUNCTIONS(count, function, data) \
/* join all threads */ \
GST_DEBUG ("MAIN: joining"); \
g_list_foreach (thread_list, (GFunc) g_thread_join, NULL); \
+ g_list_free (thread_list); \
+ thread_list = NULL; \
GST_DEBUG ("MAIN: joined"); \
} G_STMT_END;