]> git.sesse.net Git - vlc/commitdiff
APE/MPC/WV: support TotalTrack
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 13 Jun 2012 15:54:19 +0000 (17:54 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 20 Jun 2012 15:12:32 +0000 (17:12 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/meta_engine/taglib.cpp

index aec694ade3c05e1f629716d9bf895f112deeea45..0ce4c164257b685ac460f7187a4b44d9981eafc1 100644 (file)
@@ -139,6 +139,13 @@ static void ReadMetaFromAPE( APE::Tag* tag, demux_meta_t*, vlc_meta_t* p_meta )
     SET( "PUBLISHER", Publisher );
 
 #undef SET
+
+    /* */
+    item = tag->itemListMap()["TRACK"];
+    if( !item.isEmpty() )
+    {
+        ExtractTrackNumberValues( p_meta, item.toString().toCString( true ) );
+    }
 }