[vlc-commits] Vorbis: extract TotalTrack information

Jean-Baptiste Kempf git at videolan.org
Tue Jun 12 01:49:45 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jun 11 23:04:46 2012 +0200| [065f6bb1735a6df8e25c49fa569016644bf0b331] | committer: Jean-Baptiste Kempf

Vorbis: extract TotalTrack information

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

 modules/demux/vorbis.h |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/demux/vorbis.h b/modules/demux/vorbis.h
index 3110c05..2f44f71 100644
--- a/modules/demux/vorbis.h
+++ b/modules/demux/vorbis.h
@@ -109,6 +109,7 @@ static inline void vorbis_ParseComment( vlc_meta_t **pp_meta, const uint8_t *p_d
     bool hasTitle = false;
     bool hasAlbum = false;
     bool hasTrackNumber = false;
+    bool hasTrackTotal = false;
     bool hasArtist = false;
     bool hasCopyright = false;
     bool hasDescription = false;
@@ -151,6 +152,8 @@ static inline void vorbis_ParseComment( vlc_meta_t **pp_meta, const uint8_t *p_d
         IF_EXTRACT("TITLE=", Title )
         else IF_EXTRACT("ALBUM=", Album )
         else IF_EXTRACT("TRACKNUMBER=", TrackNumber )
+        else IF_EXTRACT("TRACKTOTAL=", TrackTotal )
+        else IF_EXTRACT("TOTALTRACKS=", TrackTotal )
         else IF_EXTRACT("ARTIST=", Artist )
         else IF_EXTRACT("COPYRIGHT=", Copyright )
         else IF_EXTRACT("ORGANIZATION=", Publisher )



More information about the vlc-commits mailing list