diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-06-06 11:08:46 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-10-27 20:23:46 +0300 |
commit | 786b5e4352250ba4f3fc76ce7e8379cb2078d7aa (patch) | |
tree | b2a37446fcfe8a8d9cee594190a5698dcb11a0fe | |
parent | d9e328160834c6b28ba29b0ccf0653a14f2cf606 (diff) | |
download | mpv-786b5e4352250ba4f3fc76ce7e8379cb2078d7aa.tar.bz2 mpv-786b5e4352250ba4f3fc76ce7e8379cb2078d7aa.tar.xz |
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
-rw-r--r-- | libmpdemux/demux_real.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpdemux/demux_real.c b/libmpdemux/demux_real.c index 21b5f3a16c..99abb03827 100644 --- a/libmpdemux/demux_real.c +++ b/libmpdemux/demux_real.c @@ -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; } |