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.
This commit is contained in:
Wim Taymans 2009-05-26 17:27:07 +02:00
parent 461169537b
commit 7bbdf7bf97

View file

@ -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);