OSDN Git Service

ffserver: use correct error for stream not found
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Sat, 13 Sep 2014 22:05:04 +0000 (19:05 -0300)
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Sun, 14 Sep 2014 00:01:01 +0000 (21:01 -0300)
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
ffserver.c

index dc7c5f2..3d42f62 100644 (file)
@@ -3051,7 +3051,7 @@ static void rtsp_cmd_describe(HTTPContext *c, const char *url)
         }
     }
     /* no stream found */
-    rtsp_reply_error(c, RTSP_STATUS_SERVICE); /* XXX: right error ? */
+    rtsp_reply_error(c, RTSP_STATUS_NOT_FOUND);
     return;
 
  found: