ffserver: reindent start_multicast()

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2014-12-26 18:17:47 -03:00
parent 719cc02586
commit 978bc4327b
1 changed files with 38 additions and 36 deletions

View File

@ -493,10 +493,13 @@ static void start_multicast(void)
default_port = 6000;
for(stream = config.first_stream; stream; stream = stream->next) {
if (!stream->is_multicast)
continue;
random0 = av_lfg_get(&random_state);
random1 = av_lfg_get(&random_state);
/* open the RTP connection */
snprintf(session_id, sizeof(session_id), "%08x%08x",
random0, random1);
@ -527,10 +530,9 @@ static void start_multicast(void)
stream_index++) {
dest_addr.sin_port = htons(stream->multicast_port +
2 * stream_index);
if (rtp_new_av_stream(rtp_c, stream_index, &dest_addr, NULL)
>= 0) {
if (rtp_new_av_stream(rtp_c, stream_index, &dest_addr, NULL) >= 0)
continue;
}
http_log("Could not open output stream '%s/streamid=%d'\n",
stream->filename, stream_index);
exit(1);