From 1b9fbcade1d321430089d9cd5b0313714ce52dd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Thu, 13 Dec 2007 15:26:12 +0100 Subject: 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 --- src/demuxers/id3.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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; -- cgit v1.2.3