diff options
author | Max Horn | 2007-04-06 13:28:33 +0000 |
---|---|---|
committer | Max Horn | 2007-04-06 13:28:33 +0000 |
commit | 0df4d74ae67389aba7fa34bdf08ac41674ca1747 (patch) | |
tree | 4b2c157e13fbabc1f1caa85436aafe7aadd0b864 | |
parent | 8a1cf1c2d0b661e3cbf1c9703d0835348ed328ba (diff) | |
download | scummvm-rg350-0df4d74ae67389aba7fa34bdf08ac41674ca1747.tar.gz scummvm-rg350-0df4d74ae67389aba7fa34bdf08ac41674ca1747.tar.bz2 scummvm-rg350-0df4d74ae67389aba7fa34bdf08ac41674ca1747.zip |
Fixed looping of MP3 tracks (same problem as with the FLAC tracks)
svn-id: r26389
-rw-r--r-- | sound/mp3.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/mp3.cpp b/sound/mp3.cpp index ff8787833b..f2a5f4ea8b 100644 --- a/sound/mp3.cpp +++ b/sound/mp3.cpp @@ -150,7 +150,6 @@ void MP3InputStream::decodeMP3Data() { if (!readMP3Data()) { // We tried to read more data but failed -> end of stream reached _eos = true; - break; } } @@ -214,7 +213,7 @@ void MP3InputStream::decodeMP3Data() { rewind(); } - } while (_stream.error == MAD_ERROR_BUFLEN); + } while (!_eos && _stream.error == MAD_ERROR_BUFLEN); if (_stream.error != MAD_ERROR_NONE) _eos = true; |