avformat/hls: respect http_persistent only for http playlist urls
authorAman Gupta <aman@tmm1.net>
Tue, 26 Dec 2017 02:25:13 +0000 (18:25 -0800)
committerAman Gupta <aman@tmm1.net>
Tue, 26 Dec 2017 22:48:14 +0000 (14:48 -0800)
commitac19e63b184570c0ade4d3a8a785f64441d9cac8
treec61bb2c865f84ec777a69959fdd66c0d4d3ca1b2
parent11f989945e1748fbe9b2a5abd68a25d3091acc5d
avformat/hls: respect http_persistent only for http playlist urls

Fixes a segfault when reading a live playlist (without end tag) from non-http url (like a file on disk).

Signed-off-by: Aman Gupta <aman@tmm1.net>
libavformat/hls.c