rtsp-session-pool: corrected session timeout detection

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=701253
This commit is contained in:
Patricia Muscalu 2013-05-30 10:46:33 +02:00 committed by Wim Taymans
parent 7526178a09
commit aa50aac669

View file

@ -519,11 +519,8 @@ collect_timeout (gchar * sessionid, GstRTSPSession * sess, GstPoolSource * psrc)
{ {
gint timeout; gint timeout;
GTimeVal now; GTimeVal now;
gint64 tmp;
tmp = g_source_get_time ((GSource *) psrc); g_get_current_time (&now);
now.tv_sec = tmp / G_USEC_PER_SEC;
now.tv_usec = tmp % G_USEC_PER_SEC;
timeout = gst_rtsp_session_next_timeout (sess, &now); timeout = gst_rtsp_session_next_timeout (sess, &now);
GST_INFO ("%p: next timeout: %d", sess, timeout); GST_INFO ("%p: next timeout: %d", sess, timeout);