Commit 775164ee authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

mkv: inital Cluster check.

The check was stupid (always was). This seems way more logical.
parent 4d60c14f
...@@ -1496,10 +1496,8 @@ static int Open( vlc_object_t * p_this ) ...@@ -1496,10 +1496,8 @@ static int Open( vlc_object_t * p_this )
p_segment = p_stream->segments[0]; p_segment = p_stream->segments[0];
if( p_segment->cluster == NULL ) if( p_segment->cluster == NULL )
{ {
msg_Warn( p_demux, "cannot find any cluster, damaged file ?" ); msg_Err( p_demux, "cannot find any cluster, damaged file ?" );
goto error;
// reset the stream reading to the first cluster of the segment used
p_stream->p_in->setFilePointer( p_segment->cluster->GetElementPosition() );
} }
if (config_GetInt( p_demux, "mkv-preload-local-dir" )) if (config_GetInt( p_demux, "mkv-preload-local-dir" ))
......
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