aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/mp4_plugin.c
diff options
context:
space:
mode:
authorQball Cow <qball@qballcow.nl>2006-04-30 19:55:56 +0000
committerQball Cow <qball@qballcow.nl>2006-04-30 19:55:56 +0000
commit4324150b42ea7720629b74014401119754429b04 (patch)
treeb2366f2caf7e0e1f9d3b8d56ee61d8c6772122e0 /src/inputPlugins/mp4_plugin.c
parent8aca530b863a54deab7b204e21a9b1396ace34b3 (diff)
downloadmpd-4324150b42ea7720629b74014401119754429b04.tar.gz
mpd-4324150b42ea7720629b74014401119754429b04.tar.xz
mpd-4324150b42ea7720629b74014401119754429b04.zip
Added Disc # metadata item based on bug 571 (added id3v2 support)
git-svn-id: https://svn.musicpd.org/mpd/trunk@4131 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/mp4_plugin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/inputPlugins/mp4_plugin.c b/src/inputPlugins/mp4_plugin.c
index e41c054c0..3bfdb6ce7 100644
--- a/src/inputPlugins/mp4_plugin.c
+++ b/src/inputPlugins/mp4_plugin.c
@@ -385,6 +385,10 @@ MpdTag * mp4DataDup(char * file, int * mp4MetadataFound) {
addItemToMpdTag(ret, TAG_ITEM_TRACK, value);
*mp4MetadataFound = 1;
}
+ else if(0 == strcasecmp("disc", item)) { /* Is that the correct id? */
+ addItemToMpdTag(ret, TAG_ITEM_DISC, value);
+ *mp4MetadataFound = 1;
+ }
else if(0 == strcasecmp("genre", item)) {
addItemToMpdTag(ret, TAG_ITEM_GENRE, value);
*mp4MetadataFound = 1;