summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/mpegplayer/audio_thread.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/plugins/mpegplayer/audio_thread.c b/apps/plugins/mpegplayer/audio_thread.c
index 84f0229000..106eac7f9e 100644
--- a/apps/plugins/mpegplayer/audio_thread.c
+++ b/apps/plugins/mpegplayer/audio_thread.c
@@ -579,8 +579,7 @@ static void audio_thread(void)
579 * at least one byte at a time */ 579 * at least one byte at a time */
580 audio_queue_advance_pos(MAX(len, 1)); 580 audio_queue_advance_pos(MAX(len, 1));
581 581
582 if (stream.error == MAD_FLAG_INCOMPLETE 582 if (stream.error == MAD_ERROR_BUFLEN)
583 || stream.error == MAD_ERROR_BUFLEN)
584 { 583 {
585 /* This makes the codec support partially corrupted files */ 584 /* This makes the codec support partially corrupted files */
586 if (++td.mad_errors <= MPA_MAX_FRAME_SIZE) 585 if (++td.mad_errors <= MPA_MAX_FRAME_SIZE)