From: Sebastian Dröge Date: Tue, 27 Mar 2012 08:13:20 +0000 (+0200) Subject: rtsp-server: Don't use deprecated GLib API X-Git-Tag: 1.6.0~785^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f442d45b63be0ceacec801aee6eec7af540790a;p=platform%2Fupstream%2Fgst-rtsp-server.git rtsp-server: Don't use deprecated GLib API --- 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);