diff options
-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; |