index c1f19b30bf17ab8e3067672dd99ef482310c56f7..dc56b4f09dbf42f87492205de7303b79a0634722 100644 (file)
gst_poll_add_fd (self->priv->fdset, &self->priv->sock);
gst_poll_fd_ctl_read (self->priv->fdset, &self->priv->sock, TRUE);
+#if !GLIB_CHECK_VERSION (2, 31, 0)
self->thread = g_thread_create (gst_net_client_clock_thread, self, TRUE,
&error);
- if (!self->thread)
+#else
+ self->thread = g_thread_try_new ("GstNetClientClock",
+ gst_net_client_clock_thread, self, &error);
+#endif
+
+ if (error != NULL)
goto no_thread;
return TRUE;
* @base_time: initial time of the clock
*
* Create a new #GstNetClientClock that will report the time
- * provided by the #GstNetClockProvider on @remote_address and
+ * provided by the #GstNetTimeProvider on @remote_address and
* @remote_port.
*
* Returns: a new #GstClock that receives a time from the remote