]> git.sesse.net Git - vlc/commitdiff
Complain if the protocol is not RTSP
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 24 Sep 2007 15:51:57 +0000 (15:51 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 24 Sep 2007 15:51:57 +0000 (15:51 +0000)
modules/stream_out/rtsp.c

index 5d45a844a7e5a648c0d691392c522e1ae259f041..5c4f5c433a9a3131f62360219bd25b96fa566648 100644 (file)
@@ -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;