oops another bug fix for handling stop in decodeFirstFrame (mp3)

git-svn-id: https://svn.musicpd.org/mpd/trunk@1109 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-05-20 04:36:25 +00:00
parent 0b05109416
commit 1b1d79d22a

View File

@ -348,10 +348,10 @@ int decodeFirstFrame(mp3DecodeData * data, DecoderControl * dc) {
while((ret = decodeNextFrameHeader(data))==DECODE_CONT &&
(!dc || !dc->stop));
if(ret==DECODE_SKIP) skip = 1;
else if(ret==DECODE_BREAK) return -1;
else if(ret==DECODE_BREAK || dc->stop) return -1;
while((ret = decodeNextFrame(data))==DECODE_CONT &&
(!dc || !dc->stop));
if(ret==DECODE_BREAK) return -1;
if(ret==DECODE_BREAK || dc->stop) return -1;
if(!skip && ret==DECODE_OK) break;
}