[vlc-commits] taglib: Support reading of DiscNumber from ID3v2 and Xiph tags

Uwe L. Korn git at videolan.org
Mon Dec 8 12:14:31 CET 2014


vlc | branch: master | Uwe L. Korn <uwelk at xhochy.com> | Fri Dec  5 20:11:06 2014 +0100| [2b35d73264314152e8942f4deb4fd3a607b48c03] | committer: Jean-Baptiste Kempf

taglib: Support reading of DiscNumber from ID3v2 and Xiph tags

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index 6875ee2..a600796 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -372,6 +372,7 @@ static void ReadMetaFromId3v2( ID3v2::Tag* tag, demux_meta_t* p_demux_meta, vlc_
     SET( "TLAN", Language );
     SET( "TPUB", Publisher );
     SET( "TPE2", AlbumArtist );
+    SET( "TPOS", DiscNumber );
 
 #undef SET
 
@@ -519,6 +520,7 @@ static void ReadMetaFromXiph( Ogg::XiphComment* tag, demux_meta_t* p_demux_meta,
     SET( "LANGUAGE", Language );
     SET( "MUSICBRAINZ_TRACKID", TrackID );
     SET( "ALBUMARTIST", AlbumArtist );
+    SET( "DISCNUMBER", DiscNumber );
 
     SET_EXTRA( "MUSICBRAINZ_ALBUMID", VLC_META_EXTRA_MB_ALBUMID );
 #undef SET



More information about the vlc-commits mailing list