summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/codecs/mpa.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/codecs/mpa.c b/apps/codecs/mpa.c
index 8b93810..3e6a045 100644
--- a/apps/codecs/mpa.c
+++ b/apps/codecs/mpa.c
@@ -178,16 +178,15 @@ next_track:
break;
/* Fill the buffer */
+ if (stream.next_frame)
+ ci->advance_buffer_loc((void *)stream.next_frame);
+ else
+ ci->advance_buffer(size);
stream.error = 0;
file_end++;
continue;
} else if (MAD_RECOVERABLE(stream.error)) {
- if (stream.error != MAD_ERROR_LOSTSYNC) {
- // rb->splash(HZ*1, true, "Recoverable...!");
- }
continue;
- } else if (stream.error == MAD_ERROR_BUFLEN) {
- break;
} else {
/* Some other unrecoverable error */
status = 1;