diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-01-03 20:17:28 -0300 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-01-03 20:22:45 -0300 |
commit | 997508847215a852d2f5d564e641f38f8bd93c46 (patch) | |
tree | e969da2f292e80905f9e63a11a6952e3b5085c81 | |
parent | ac1940b2ba7d999f2da6100a2cf6cab30e216f3e (diff) | |
download | ffmpeg-997508847215a852d2f5d564e641f38f8bd93c46.tar.gz |
ffserver: reindent rtsp_cmd_setup()
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
-rw-r--r-- | ffserver.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/ffserver.c b/ffserver.c index 129eb305a6..c4cf390de5 100644 --- a/ffserver.c +++ b/ffserver.c @@ -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 ? */ |