]> git.sesse.net Git - vlc/commitdiff
mp4: require can_fastseek for mp4-demuxer
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 4 Aug 2010 11:48:28 +0000 (14:48 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Wed, 4 Aug 2010 11:48:28 +0000 (14:48 +0300)
As it works fine over http if mp4-files are done with mp4box -tight or similar way,
in most cases mp4-files aren't done like that and avformat works much better in those
cases (don't need to seek so much).

modules/demux/mp4/mp4.c

index 13b87f04a08f9434251d70eba43953d1a1315553..011e7bff5200c396df81ba971b4954c0ff605bde 100644 (file)
@@ -302,10 +302,10 @@ static int Open( vlc_object_t * p_this )
     }
 
     /* I need to seek */
-    stream_Control( p_demux->s, STREAM_CAN_SEEK, &b_seekable );
+    stream_Control( p_demux->s, STREAM_CAN_FASTSEEK, &b_seekable );
     if( !b_seekable )
     {
-        msg_Warn( p_demux, "MP4 plugin discarded (unseekable)" );
+        msg_Warn( p_demux, "MP4 plugin discarded (not fastseekable)" );
         return VLC_EGENERIC;
     }