From 7bbdf7bf9754a894557c2d057bcf3b408d232178 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 26 May 2009 17:27:07 +0200 Subject: [PATCH] session: add 5sec to the real session timeout Allow the session to live 5sec longer before really timing out. This should give clients some extra time to keep the session active. --- gst/rtsp-server/rtsp-session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/rtsp-server/rtsp-session.c b/gst/rtsp-server/rtsp-session.c index fc13098329..54a3700448 100644 --- a/gst/rtsp-server/rtsp-session.c +++ b/gst/rtsp-server/rtsp-session.c @@ -418,8 +418,8 @@ gst_rtsp_session_next_timeout (GstRTSPSession *session, GTimeVal *now) g_return_val_if_fail (now != NULL, -1); last_access = GST_TIMEVAL_TO_TIME (session->last_access); - /* add timeout */ - last_access += session->timeout * GST_SECOND; + /* add timeout allow for 5 seconds of extra time */ + last_access += session->timeout * GST_SECOND + (5 * GST_SECOND); now_ns = GST_TIMEVAL_TO_TIME (*now);