From: Ilkka Ollakka Date: Wed, 4 Aug 2010 11:48:28 +0000 (+0300) Subject: mp4: require can_fastseek for mp4-demuxer X-Git-Tag: 1.2.0-pre1~5558 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=45f7ca3d6cff34b10f2cf314c15fca9066e8ccf8;p=vlc 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). --- 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; }