mirror of https://git.ffmpeg.org/ffmpeg.git
hls: skip to next segment if the current is unavailable
Apparently, some live streams can delete segments too early, maybe because the client is too far behind. In this case, it's better to skip the segment, instead of returning EOF. (Yes, the HLS demuxer actually returns AVERROR_EOF if opening the segment returns a 404 HTTP error.) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3acadc89f4
commit
e2691b8092
|
@ -1087,7 +1087,8 @@ reload:
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
av_log(v->parent, AV_LOG_WARNING, "Failed to open segment of playlist %d\n",
|
av_log(v->parent, AV_LOG_WARNING, "Failed to open segment of playlist %d\n",
|
||||||
v->index);
|
v->index);
|
||||||
return ret;
|
v->cur_seq_no += 1;
|
||||||
|
goto reload;
|
||||||
}
|
}
|
||||||
just_opened = 1;
|
just_opened = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue