projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4611695
)
session: add 5sec to the real session timeout
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 26 May 2009 15:27:07 +0000
(17:27 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 26 May 2009 15:27:07 +0000
(17:27 +0200)
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
patch
|
blob
|
history
diff --git
a/gst/rtsp-server/rtsp-session.c
b/gst/rtsp-server/rtsp-session.c
index
fc13098
..
54a3700
100644
(file)
--- 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);