aboutsummaryrefslogtreecommitdiff
path: root/ffserver.c
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet2015-06-24 18:57:42 -0300
committerReynaldo H. Verdejo Pinochet2015-06-24 19:17:51 -0300
commit36a617c1625d5b05afa00e24c5e6291eb64c2bdf (patch)
tree3712c6b926e2158d45a74dac4e41258dc65c1a0d /ffserver.c
parent469c335c55674b31069aaadaaae014b33def1dff (diff)
ffserver: make statement block unconditional by exiting early
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/ffserver.c b/ffserver.c
index 1be545f909..b9b6d9661e 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -3594,16 +3594,17 @@ static void build_feed_streams(void)
/* gather all streams */
for(stream = config.first_stream; stream; stream = stream->next) {
feed = stream->feed;
- if (feed) {
- if (stream->is_feed) {
- for(i=0;i<stream->nb_streams;i++)
- stream->feed_streams[i] = i;
- } else {
- /* we handle a stream coming from a feed */
- for(i=0;i<stream->nb_streams;i++)
- stream->feed_streams[i] = add_av_stream(feed,
- stream->streams[i]);
- }
+ if (!feed)
+ continue;
+
+ if (stream->is_feed) {
+ for(i=0;i<stream->nb_streams;i++)
+ stream->feed_streams[i] = i;
+ } else {
+ /* we handle a stream coming from a feed */
+ for(i=0;i<stream->nb_streams;i++)
+ stream->feed_streams[i] = add_av_stream(feed,
+ stream->streams[i]);
}
}