aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-19 21:31:53 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-19 21:31:53 +0000
commit7f1553668329eb155629ef5a07b9161a26267d80 (patch)
treeb8f1545b24d2c22e5ef08a9bf4695830d3c4f51b /src/inputPlugins
parent0228a4a5ca77f49a554b4a2f689ee76ff28dca6d (diff)
downloadmpd-7f1553668329eb155629ef5a07b9161a26267d80.tar.gz
mpd-7f1553668329eb155629ef5a07b9161a26267d80.tar.xz
mpd-7f1553668329eb155629ef5a07b9161a26267d80.zip
DEBUG message
git-svn-id: https://svn.musicpd.org/mpd/trunk@1571 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/mp3_plugin.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/inputPlugins/mp3_plugin.c b/src/inputPlugins/mp3_plugin.c
index 2921c9351..9c5eb824a 100644
--- a/src/inputPlugins/mp3_plugin.c
+++ b/src/inputPlugins/mp3_plugin.c
@@ -230,7 +230,10 @@ static MpdTag * mp3_parseId3Tag(mp3DecodeData * data, signed long tagsize) {
else count += len;
}
- if(count != tagsize) goto fail;
+ if(count != tagsize) {
+ DEBUG("mp3_decode: error parsing ID3 tag\n");
+ goto fail;
+ }
id3_data = allocated;
}
@@ -262,7 +265,9 @@ int decodeNextFrameHeader(mp3DecodeData * data, MpdTag ** tag) {
(data->stream).this_frame);
if(tagsize>0) {
- if(tag) *tag =mp3_parseId3Tag(data, tagsize);
+ if(tag && !(*tag)) {
+ *tag =mp3_parseId3Tag(data, tagsize);
+ }
else {
mad_stream_skip(&(data->stream),
tagsize);