]> git.sesse.net Git - vlc/commitdiff
Default RTSP timeout value is 60 seconds, rather than never - closes #1163
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 9 Sep 2007 17:52:38 +0000 (17:52 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 9 Sep 2007 17:52:38 +0000 (17:52 +0000)
modules/demux/live555.cpp

index 77fe3f0c928df3f4afeec820d188bdb620b6ce73..bc98097c26ede474fd1814d4f20c2f225b6edd73 100644 (file)
@@ -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) );