check: allow non-joinable threads in private g_thread_create() copy

Looks like some tests use non-joinable threads after all.
This commit is contained in:
Tim-Philipp Müller 2011-12-04 21:19:04 +00:00
parent 2666450864
commit 8811cbc5aa

View file

@ -283,8 +283,10 @@ static inline GThread *
gst_g_thread_create (GThreadFunc func, gpointer data, gboolean joinable, gst_g_thread_create (GThreadFunc func, gpointer data, gboolean joinable,
GError **error) GError **error)
{ {
g_assert (joinable); GThread *thread = g_thread_try_new ("gst-check", func, data, error);
return g_thread_try_new ("gst-check", func, data, error); if (!joinable)
g_thread_unref (thread);
return thread;
} }
#define g_mutex_new gst_g_mutex_new #define g_mutex_new gst_g_mutex_new
static inline GMutex * static inline GMutex *