diff --git a/gst/rtsp-server/rtsp-session-pool.c b/gst/rtsp-server/rtsp-session-pool.c index 1d00dc448d..c1619c70fb 100644 --- a/gst/rtsp-server/rtsp-session-pool.c +++ b/gst/rtsp-server/rtsp-session-pool.c @@ -476,8 +476,11 @@ collect_timeout (gchar * sessionid, GstRTSPSession * sess, GstPoolSource * psrc) { gint timeout; GTimeVal now; + gint64 tmp; - g_get_current_time (&now); + tmp = g_source_get_time ((GSource *) psrc); + now.tv_sec = tmp / G_USEC_PER_SEC; + now.tv_usec = tmp % G_USEC_PER_SEC; timeout = gst_rtsp_session_next_timeout (sess, &now); GST_INFO ("%p: next timeout: %d", sess, timeout);