From 66fe9a72ca4319ebcb46b7c56832e8728bafd8a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 9 Sep 2007 17:52:38 +0000 Subject: [PATCH] Default RTSP timeout value is 60 seconds, rather than never - closes #1163 --- modules/demux/live555.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp index 77fe3f0c92..bc98097c26 100644 --- a/modules/demux/live555.cpp +++ b/modules/demux/live555.cpp @@ -898,7 +898,9 @@ static int Play( demux_t *p_demux ) /* Retrieve the timeout value and set up a timeout prevention thread */ p_sys->i_timeout = p_sys->rtsp->sessionTimeoutParameter(); - if( p_sys->i_timeout > 0 && !p_sys->p_timeout ) + if( p_sys->i_timeout <= 0 ) + p_sys->i_timeout = 60; /* default value from RFC2326 */ + if( !p_sys->p_timeout ) { msg_Dbg( p_demux, "We have a timeout of %d seconds", p_sys->i_timeout ); p_sys->p_timeout = (timeout_thread_t *)vlc_object_create( p_demux, sizeof(timeout_thread_t) ); -- 2.39.2