[vlc-commits] mp4: require can_fastseek for mp4-demuxer

Ilkka Ollakka git at videolan.org
Wed Feb 23 10:58:25 CET 2011


vlc/vlc-1.1 | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Aug  4 14:48:28 2010 +0300| [86d57e54066ee1618e3876e4a8987edff27cd318] | committer: Pierre Ynard

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).
(cherry picked from commit 45f7ca3d6cff34b10f2cf314c15fca9066e8ccf8)

Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=86d57e54066ee1618e3876e4a8987edff27cd318
---

 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 7a0a92c..55ebd59 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