diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-03-24 02:23:40 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-03-24 02:23:40 +0000 |
commit | 7479bfacbb5743357bf02a64034093c81d806e13 (patch) | |
tree | 7cde3138d6efa3bc82bfbbb9660a85421d3059e8 /src/mp3_decode.c | |
parent | 9b38a1e63e7efc40a85b5a0e1648a58eb3524ce5 (diff) | |
download | mpd-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.c | 4 |
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- |