[MPlayer-cvslog] r31335 - trunk/libmpdemux/demux_real.c

reimar subversion at mplayerhq.hu
Sun Jun 6 13:08:46 CEST 2010


Author: reimar
Date: Sun Jun  6 13:08:46 2010
New Revision: 31335

Log:
Disable index reading in real demuxer if stream is not seekable.
Fixes playback of piped real files (except multirate where this seems
not possible).

Modified:
   trunk/libmpdemux/demux_real.c

Modified: trunk/libmpdemux/demux_real.c
==============================================================================
--- trunk/libmpdemux/demux_real.c	Sun Jun  6 10:32:17 2010	(r31334)
+++ trunk/libmpdemux/demux_real.c	Sun Jun  6 13:08:46 2010	(r31335)
@@ -1712,7 +1712,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;
 	    }


More information about the MPlayer-cvslog mailing list