mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 17:42:17 +00:00
demux_real: Don't try to read index if stream is not seekable
Fixes playback of piped real files (except multirate where this seems not possible). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31335 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d9e3281608
commit
786b5e4352
@ -1711,7 +1711,8 @@ header_end:
|
||||
|
||||
switch (index_mode){
|
||||
case -1: // untouched
|
||||
if (priv->index_chunk_offset && parse_index_chunk(demuxer))
|
||||
if ((demuxer->stream->flags & MP_STREAM_SEEK) == MP_STREAM_SEEK &&
|
||||
priv->index_chunk_offset && parse_index_chunk(demuxer))
|
||||
{
|
||||
demuxer->seekable = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user