]> git.sesse.net Git - vlc/commitdiff
MKV: fix wrong EBML element checking before a cast
authorSteve Lhomme <robux4@gmail.com>
Fri, 20 Feb 2015 13:40:01 +0000 (14:40 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 20 Feb 2015 13:45:30 +0000 (14:45 +0100)
Fix a silly typo and loads Tags the first time we see them, during the
Preload phase.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/mkv/matroska_segment.cpp

index 904a12fbf0d23ef215704b38a6e446ea2f445e62..eac5a54794b860683ef11066156812e66edbbcfe 100644 (file)
@@ -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 ) )