summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-13 15:26:12 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-13 15:26:12 +0100
commit1b9fbcade1d321430089d9cd5b0313714ce52dd0 (patch)
treeecbb3f19240f0f023fa8ea997747e88f7ce1deb4 /src
parent559494b5ecfe4e8730fda3d592a91d1b4eae54c7 (diff)
downloadxine-lib-1b9fbcade1d321430089d9cd5b0313714ce52dd0.tar.gz
xine-lib-1b9fbcade1d321430089d9cd5b0313714ce52dd0.tar.bz2
Use the ID3 tag macros to identify the correct _parse_tag function to use.
--HG-- extra : transplant_source : %ED%0D%F6%ADf%2A%C2%8C%11%7C%C7%DB3%10%C6%BD%08%04%99%20
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/id3.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/demuxers/id3.c b/src/demuxers/id3.c
index fb7b76ca6..2367087f8 100644
--- a/src/demuxers/id3.c
+++ b/src/demuxers/id3.c
@@ -856,18 +856,18 @@ int id3v2_parse_tag(input_plugin_t *input,
int result = 0;
- switch(mp3_frame_header[3]) {
- case 2:
+ switch(id3_signature) {
+ case ID3V22_TAG:
xprintf(stream->xine, XINE_VERBOSITY_LOG, "ID3V2.2 tag\n");
result = id3v22_parse_tag(input, stream, id3_signature);
break;
- case 3:
+ case ID3V23_TAG:
xprintf(stream->xine, XINE_VERBOSITY_LOG, "ID3V2.3 tag\n");
result = id3v23_parse_tag(input, stream, id3_signature);
break;
- case 4:
+ case ID3V24_TAG:
xprintf(stream->xine, XINE_VERBOSITY_LOG, "ID3V2.4 tag\n");
result = id3v24_parse_tag(input, stream, id3_signature);
break;