Skip to content

Commit

Permalink
ffserver: reindent rtsp_cmd_setup()
Browse files Browse the repository at this point in the history
Signed-off-by: Reynaldo H. Verdejo Pinochet <[email protected]>
  • Loading branch information
reynaldo committed Jan 3, 2015
1 parent ac1940b commit 9975088
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions ffserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -2941,23 +2941,23 @@ static void rtsp_cmd_setup(HTTPContext *c, const char *url,
strcmp(stream->fmt->name, "rtp")) {
continue;
}
/* accept aggregate filenames only if single stream */
if (!strcmp(path, stream->filename)) {
if (stream->nb_streams != 1) {
rtsp_reply_error(c, RTSP_STATUS_AGGREGATE);
return;
}
stream_index = 0;
goto found;
/* accept aggregate filenames only if single stream */
if (!strcmp(path, stream->filename)) {
if (stream->nb_streams != 1) {
rtsp_reply_error(c, RTSP_STATUS_AGGREGATE);
return;
}
stream_index = 0;
goto found;
}

for(stream_index = 0; stream_index < stream->nb_streams;
stream_index++) {
snprintf(buf, sizeof(buf), "%s/streamid=%d",
stream->filename, stream_index);
if (!strcmp(path, buf))
goto found;
}
for(stream_index = 0; stream_index < stream->nb_streams;
stream_index++) {
snprintf(buf, sizeof(buf), "%s/streamid=%d",
stream->filename, stream_index);
if (!strcmp(path, buf))
goto found;
}
}
/* no stream found */
rtsp_reply_error(c, RTSP_STATUS_SERVICE); /* XXX: right error ? */
Expand Down

0 comments on commit 9975088

Please sign in to comment.