[vlc-devel] [PATCH] live555: forced creation of timeout thread for WMServer rtsp dialects
Andrew Schubert
andrew1343j at yahoo.com
Fri Apr 12 17:14:28 CEST 2013
GET_PARAMETER isn't reported to be supported by Windows Media Server in its OPTIONS.
However, it is needed to prevent automatic session timeout after 120 seconds.
---
modules/access/live555.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/access/live555.cpp b/modules/access/live555.cpp
index 419f669..e29ac30 100644
--- a/modules/access/live555.cpp
+++ b/modules/access/live555.cpp
@@ -1149,7 +1149,8 @@ static int Play( demux_t *p_demux )
p_sys->i_timeout = 60; /* default value from RFC2326 */
/* start timeout-thread only if GET_PARAMETER is supported by the server */
- if( !p_sys->p_timeout && p_sys->b_get_param )
+ /* or start it if wmserver dialect, since they don't report that GET_PARAMETER is supported correctly */
+ if( !p_sys->p_timeout && ( p_sys->b_get_param || var_InheritBool( p_demux, "rtsp-wmserver" ) ) )
{
msg_Dbg( p_demux, "We have a timeout of %d seconds", p_sys->i_timeout );
p_sys->p_timeout = (timeout_thread_t *)malloc( sizeof(timeout_thread_t) );
--
1.7.11.7
More information about the vlc-devel
mailing list