Commit 61ea699c authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf
Browse files

demux:mkv: do not preload the clusters if we cannot seek


Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 3697d002
......@@ -620,7 +620,8 @@ bool matroska_segment_c::Preload( )
}
else if( MKV_CHECKED_PTR_DECL ( kc_ptr, KaxCluster, el ) )
{
if( var_InheritBool( &sys.demuxer, "mkv-preload-clusters" ) )
if( sys.b_seekable &&
var_InheritBool( &sys.demuxer, "mkv-preload-clusters" ) )
{
PreloadClusters ( kc_ptr->GetElementPosition() );
es.I_O().setFilePointer( kc_ptr->GetElementPosition() );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment