From 45f7ca3d6cff34b10f2cf314c15fca9066e8ccf8 Mon Sep 17 00:00:00 2001 From: Ilkka Ollakka Date: Wed, 4 Aug 2010 14:48:28 +0300 Subject: [PATCH 1/1] 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). --- modules/demux/mp4/mp4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c index 13b87f04a0..011e7bff52 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; } -- 2.39.2