From 1f442d45b63be0ceacec801aee6eec7af540790a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 27 Mar 2012 10:13:20 +0200 Subject: [PATCH] rtsp-server: Don't use deprecated GLib API --- gst/rtsp-server/rtsp-session-pool.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gst/rtsp-server/rtsp-session-pool.c b/gst/rtsp-server/rtsp-session-pool.c index de9234e..da0c1c3 100644 --- a/gst/rtsp-server/rtsp-session-pool.c +++ b/gst/rtsp-server/rtsp-session-pool.c @@ -476,8 +476,15 @@ collect_timeout (gchar * sessionid, GstRTSPSession * sess, GstPoolSource * psrc) { gint timeout; GTimeVal now; +#if GLIB_CHECK_VERSION(2,28,0) + gint64 tmp; + tmp = g_source_get_time ((GSource *) psrc); + now.tv_sec = tmp / G_USEC_PER_SEC; + now.tv_usec = tmp % G_USEC_PER_SEC; +#else g_source_get_current_time ((GSource *) psrc, &now); +#endif timeout = gst_rtsp_session_next_timeout (sess, &now); GST_INFO ("%p: next timeout: %d", sess, timeout); -- 2.7.4