[vlc-commits] MP3: support for TRACKTOTAL in TXXX

Jean-Baptiste Kempf git at videolan.org
Wed Jun 13 00:56:21 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jun 13 01:53:34 2012 +0200| [46ffd6ec760f27ff56829ccdbe90bf04c94d48b7] | committer: Jean-Baptiste Kempf

MP3: support for TRACKTOTAL in TXXX

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=46ffd6ec760f27ff56829ccdbe90bf04c94d48b7
---

 modules/meta_engine/taglib.cpp |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index 2464a33..e1f63ee 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -221,6 +221,11 @@ static void ReadMetaFromId3v2( ID3v2::Tag* tag, demux_meta_t* p_demux_meta, vlc_
                 dynamic_cast<ID3v2::UserTextIdentificationFrame*>(*iter);
         if( !p_txxx )
             continue;
+        if( !strcmp( p_txxx->description().toCString( true ), "TRACKTOTAL" ) )
+        {
+            vlc_meta_Set( p_meta, vlc_meta_TrackTotal, p_txxx->fieldList().back().toCString( true ) );
+            continue;
+        }
         vlc_meta_AddExtra( p_meta, p_txxx->description().toCString( true ),
                            p_txxx->fieldList().back().toCString( true ) );
     }



More information about the vlc-commits mailing list