Commit 5dfb4af7 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

MKV: fix wrong EBML element checking before a cast

Fix a silly typo and loads Tags the first time we see them, during the
Preload phase.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 35fc5692
......@@ -726,11 +726,11 @@ bool matroska_segment_c::Preload( )
ParseChapters( static_cast<KaxChapters*>( el ) );
i_chapters_position = (int64_t) es.I_O().getFilePointer();
}
else if( MKV_IS_ID( el, KaxTag ) )
else if( MKV_IS_ID( el, KaxTags ) )
{
msg_Dbg( &sys.demuxer, "| + Tags" );
/*FIXME if( i_tags_position < 0)
LoadTags( static_cast<KaxTags*>( el ) );*/
if( i_tags_position < 0)
LoadTags( static_cast<KaxTags*>( el ) );
i_tags_position = (int64_t) es.I_O().getFilePointer();
}
else if( MKV_IS_ID( el, EbmlVoid ) )
......
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