ffserver: drop unneeded else branching
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
This commit is contained in:
parent
683f57354d
commit
758c7a5cbc
13
ffserver.c
13
ffserver.c
@ -2220,17 +2220,16 @@ static int http_prepare_data(HTTPContext *c)
|
|||||||
} else if (ret == AVERROR(EAGAIN)) {
|
} else if (ret == AVERROR(EAGAIN)) {
|
||||||
/* input not ready, come back later */
|
/* input not ready, come back later */
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
if (c->stream->loop) {
|
||||||
|
avformat_close_input(&c->fmt_in);
|
||||||
|
if (open_input_stream(c, "") < 0)
|
||||||
|
goto no_loop;
|
||||||
|
goto redo;
|
||||||
} else {
|
} else {
|
||||||
if (c->stream->loop) {
|
|
||||||
avformat_close_input(&c->fmt_in);
|
|
||||||
if (open_input_stream(c, "") < 0)
|
|
||||||
goto no_loop;
|
|
||||||
goto redo;
|
|
||||||
} else {
|
|
||||||
no_loop:
|
no_loop:
|
||||||
/* must send trailer now because EOF or error */
|
/* must send trailer now because EOF or error */
|
||||||
c->state = HTTPSTATE_SEND_DATA_TRAILER;
|
c->state = HTTPSTATE_SEND_DATA_TRAILER;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
int source_index = pkt.stream_index;
|
int source_index = pkt.stream_index;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user