mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
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:
parent
461169537b
commit
7bbdf7bf97
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue