hls: only seek if there is an offset
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 22 Sep 2015 11:40:20 +0000 (13:40 +0200)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Mon, 12 Oct 2015 19:46:54 +0000 (21:46 +0200)
commit173053a1252cfa67c1e4e2d2cf9484b44bfee2e3
tree2f6e06725bfccc84ae8571abc8bf9ded53d7dd4f
parent8118fdf8bb92dbd91929e734cd136e3e2e41fdcb
hls: only seek if there is an offset

If there is no #EXT-X-BYTERANGE specified, there is no need to seek.
Seeking fails anyway for rtmp, because this protocol does not support
url_seek.

This fixes CNN.m3u from trac ticket 4797 (i.e. Debian bug #798189).

Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit f9f0b4c08e7dc2c178ede137af4f64ca84ab2deb)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavformat/hls.c