aboutsummaryrefslogtreecommitdiffstats
path: root/src/mp3_decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-24 02:23:40 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-24 02:23:40 +0000
commit7479bfacbb5743357bf02a64034093c81d806e13 (patch)
tree7cde3138d6efa3bc82bfbbb9660a85421d3059e8 /src/mp3_decode.c
parent9b38a1e63e7efc40a85b5a0e1648a58eb3524ce5 (diff)
downloadmpd-7479bfacbb5743357bf02a64034093c81d806e13.tar.gz
mpd-7479bfacbb5743357bf02a64034093c81d806e13.tar.xz
mpd-7479bfacbb5743357bf02a64034093c81d806e13.zip
bitRate support for audiofile
git-svn-id: https://svn.musicpd.org/mpd/trunk@443 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/mp3_decode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mp3_decode.c b/src/mp3_decode.c
index ed108c37b..d31db2e86 100644
--- a/src/mp3_decode.c
+++ b/src/mp3_decode.c
@@ -190,7 +190,9 @@ int decodeNextFrameHeader(mp3DecodeData * data) {
}
if(mad_header_decode(&data->frame.header,&data->stream)) {
#ifdef HAVE_ID3TAG
- if((data->stream).error==MAD_ERROR_LOSTSYNC) {
+ if((data->stream).error==MAD_ERROR_LOSTSYNC &&
+ (data->stream).this_frame)
+ {
signed long tagsize = id3_tag_query(
(data->stream).this_frame,
(data->stream).bufend-