ffserver: make statement block unconditional by exiting early

Signed-off-by: 's avatarReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
parent 469c335c
......@@ -3594,7 +3594,9 @@ static void build_feed_streams(void)
/* gather all streams */
for(stream = config.first_stream; stream; stream = stream->next) {
feed = stream->feed;
if (feed) {
if (!feed)
continue;
if (stream->is_feed) {
for(i=0;i<stream->nb_streams;i++)
stream->feed_streams[i] = i;
......@@ -3605,7 +3607,6 @@ static void build_feed_streams(void)
stream->streams[i]);
}
}
}
/* create feed files if needed */
for(feed = config.first_feed; feed; feed = feed->next_feed) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment