rtsp-session-pool: corrected session timeout detection
authorPatricia Muscalu <patricia@axis.com>
Thu, 30 May 2013 08:46:33 +0000 (10:46 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 30 May 2013 11:13:05 +0000 (13:13 +0200)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=701253

gst/rtsp-server/rtsp-session-pool.c

index c4709c5..f0b65dc 100644 (file)
@@ -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);