From: Patricia Muscalu Date: Thu, 30 May 2013 08:46:33 +0000 (+0200) Subject: rtsp-session-pool: corrected session timeout detection X-Git-Tag: 1.19.3~495^2~1133 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa50aac669c4a5567ffd37bd08ab251039a4f018;p=platform%2Fupstream%2Fgstreamer.git rtsp-session-pool: corrected session timeout detection Fixes https://bugzilla.gnome.org/show_bug.cgi?id=701253 --- diff --git a/gst/rtsp-server/rtsp-session-pool.c b/gst/rtsp-server/rtsp-session-pool.c index c4709c5..f0b65dc 100644 --- a/gst/rtsp-server/rtsp-session-pool.c +++ b/gst/rtsp-server/rtsp-session-pool.c @@ -519,11 +519,8 @@ collect_timeout (gchar * sessionid, GstRTSPSession * sess, GstPoolSource * psrc) { gint timeout; GTimeVal now; - 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; + g_get_current_time (&now); timeout = gst_rtsp_session_next_timeout (sess, &now); GST_INFO ("%p: next timeout: %d", sess, timeout);