vorbistag: add mapping for TOTALTRACKS and TOTALDISCS tags
authorTim-Philipp Müller <tim@centricular.net>
Thu, 14 Feb 2013 00:29:01 +0000 (00:29 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 14 Feb 2013 00:33:56 +0000 (00:33 +0000)
Found TOTALTRACKS in a FLAC file instead of TRACKTOTAL,
we should at least read this if present.

http://www.hydrogenaudio.org/forums/index.php?showtopic=91496&st=0&p=773857&#entry773857

gst-libs/gst/tag/gstvorbistag.c

index c6fa94e..ae4702c 100644 (file)
@@ -53,7 +53,9 @@ static const GstTagEntryMatch tag_matches[] = {
   {GST_TAG_TRACK_NUMBER, "TRACKNUMBER"},
   {GST_TAG_ALBUM_VOLUME_NUMBER, "DISCNUMBER"},
   {GST_TAG_TRACK_COUNT, "TRACKTOTAL"},
+  {GST_TAG_TRACK_COUNT, "TOTALTRACKS"}, /* old / non-standard */
   {GST_TAG_ALBUM_VOLUME_COUNT, "DISCTOTAL"},
+  {GST_TAG_ALBUM_VOLUME_COUNT, "TOTALDISCS"},   /* old / non-standard */
   {GST_TAG_ARTIST, "ARTIST"},
   {GST_TAG_PERFORMER, "PERFORMER"},
   {GST_TAG_COMPOSER, "COMPOSER"},