ffserver: make statement block unconditional by exiting early

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2015-06-24 18:57:42 -03:00
parent 469c335c55
commit 36a617c162

View File

@ -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) {