From: RĂ©mi Denis-Courmont Date: Thu, 13 Dec 2007 18:06:34 +0000 (+0000) Subject: SET_PARAMETER is simply *wrong*. Servers are not supposed to support except for propr... X-Git-Tag: 0.9.0-test0~4137 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=64fcf937ace17e82f5fff6d5be7f79305be10da7;p=vlc SET_PARAMETER is simply *wrong*. Servers are not supposed to support except for proprietary extensions (meaning we cannot use for just any random server). Even GET_PARAMETER is hardly good, as it is not mandatory to implement either, but it is a defined way to ping (which SET_PARAMETER ain't). In any case, the only proper way to ping a stream is RTCP feedback. When it comes to the control session, better check OPTIONS Allow: header for GET_PARAMETER. I really wonder how live555 can be so low-level though - smells like we are trying to be too intelligent here. --- diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp index 90bc2123ca..db4d1aef0d 100644 --- a/modules/demux/live555.cpp +++ b/modules/demux/live555.cpp @@ -1037,7 +1037,8 @@ static int Demux( demux_t *p_demux ) /* Check if we need to send the server a Keep-A-Live signal */ if( p_sys->b_timeout_call && p_sys->rtsp && p_sys->ms ) { - p_sys->rtsp->setMediaSessionParameter( *p_sys->ms, "vlc" , "1" ); + char *psz_bye = NULL; + p_sys->rtsp->getMediaSessionParameter( *p_sys->ms, NULL, psz_bye ); p_sys->b_timeout_call = VLC_FALSE; }