diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-12-03 13:58:51 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-12-03 13:58:51 +0000 |
commit | ca179625f89edf6a118eb9e934a89de4ed4b720b (patch) | |
tree | f1ecf09b5773cfbbf97e876f1009ca57cc4ec1f7 /gst | |
parent | bfcb5a43a6e3a068dbd72565210806e50f526cf5 (diff) |
g_thread_create() is deprecated in GLib master, use g_thread_try_new() instead
Diffstat (limited to 'gst')
-rw-r--r-- | gst/gstsystemclock.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/gstsystemclock.c b/gst/gstsystemclock.c index ef691fd17d..2c71489cfa 100644 --- a/gst/gstsystemclock.c +++ b/gst/gstsystemclock.c @@ -735,8 +735,14 @@ gst_system_clock_start_async (GstSystemClock * clock) if (G_LIKELY (clock->thread != NULL)) return TRUE; /* Thread already running. Nothing to do */ +#if !GLIB_CHECK_VERSION (2, 31, 0) clock->thread = g_thread_create ((GThreadFunc) gst_system_clock_async_thread, clock, TRUE, &error); +#else + clock->thread = g_thread_try_new ("GstSystemClock", + (GThreadFunc) gst_system_clock_async_thread, clock, &error); +#endif + if (G_UNLIKELY (error)) goto no_thread; |