hls: skip to next segment if the current is unavailable
authorwm4 <nfxjfg@googlemail.com>
Thu, 16 Apr 2015 11:47:20 +0000 (13:47 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 17 Apr 2015 20:54:17 +0000 (22:54 +0200)
commite2691b809271b311c088075ad79f8f775258fd14
treed973319e315cfcc6f0cf6ee9d1eb4660f2e677f6
parent3acadc89f495366a1c7de234b33df7464fd64acd
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>
libavformat/hls.c