[vlc-commits] commit: mp4: require can_fastseek for mp4-demuxer (Ilkka Ollakka )

git at videolan.org git at videolan.org
Wed Aug 4 13:51:25 CEST 2010


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Aug  4 14:48:28 2010 +0300| [45f7ca3d6cff34b10f2cf314c15fca9066e8ccf8] | committer: Ilkka Ollakka 

mp4: require can_fastseek for mp4-demuxer

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).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=45f7ca3d6cff34b10f2cf314c15fca9066e8ccf8
---

 modules/demux/mp4/mp4.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 13b87f0..011e7bf 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -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;
     }
 



More information about the vlc-commits mailing list