demux_lavf: let libavformat open HLS streams directly

Fixes opening some streams.

This means the HLS playlist will be opened twice, but that's not much of
a problem, considering it's pretty small, and HLS will make many other
http accesses anyway.
This commit is contained in:
wm4 2014-10-14 20:43:27 +02:00
parent 7c69848e3e
commit ffd3ae1fad
1 changed files with 2 additions and 1 deletions

View File

@ -707,7 +707,8 @@ static int demux_open_lavf(demuxer_t *demuxer, enum demux_check check)
}
if ((priv->avif->flags & AVFMT_NOFILE) ||
demuxer->stream->type == STREAMTYPE_AVDEVICE)
demuxer->stream->type == STREAMTYPE_AVDEVICE ||
matches_avinputformat_name(priv, "hls"))
{
// This might be incorrect.
demuxer->seekable = true;