aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sound/decoders/mp3.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/decoders/mp3.cpp b/sound/decoders/mp3.cpp
index 2178cc86ac..90642368a5 100644
--- a/sound/decoders/mp3.cpp
+++ b/sound/decoders/mp3.cpp
@@ -146,6 +146,8 @@ void MP3Stream::decodeMP3Data() {
readMP3Data();
while (_state == MP3_STATE_READY) {
+ _stream.error = MAD_ERROR_NONE;
+
// Decode the next frame
if (mad_frame_decode(&_frame, &_stream) == -1) {
if (_stream.error == MAD_ERROR_BUFLEN) {