[gst-cvs] gst-rtsp-server: session: add 5sec to the real session timeout
Wim Taymans
wtay at kemper.freedesktop.org
Tue May 26 08:28:01 PDT 2009
Module: gst-rtsp-server
Branch: master
Commit: 7bbdf7bf9754a894557c2d057bcf3b408d232178
URL: http://cgit.freedesktop.org/gstreamer/gst-rtsp-server/commit/?id=7bbdf7bf9754a894557c2d057bcf3b408d232178
Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date: Tue May 26 17:27:07 2009 +0200
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 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gst/rtsp-server/rtsp-session.c b/gst/rtsp-server/rtsp-session.c
index fc13098..54a3700 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);
More information about the Gstreamer-commits
mailing list