From: RĂ©mi Denis-Courmont Date: Mon, 24 Sep 2007 15:51:57 +0000 (+0000) Subject: Complain if the protocol is not RTSP X-Git-Tag: 0.9.0-test0~5373 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=76a6fd05d02483cffd33e01f543297074eb55961;p=vlc Complain if the protocol is not RTSP --- diff --git a/modules/stream_out/rtsp.c b/modules/stream_out/rtsp.c index 5d45a844a7..5c4f5c433a 100644 --- a/modules/stream_out/rtsp.c +++ b/modules/stream_out/rtsp.c @@ -369,6 +369,11 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id, answer->i_body = 0; answer->p_body = NULL; + if( query->i_proto != HTTPD_PROTO_RTSP ) + { + answer->i_status = 505; + } + else if( httpd_MsgGet( query, "Require" ) != NULL ) { answer->i_status = 551;