From 8344437de0064c69c06fb3c4948fd92a28aeb3b7 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 5 Dec 2002 11:09:52 +0000 Subject: [PATCH] Better handling of DMA underrun. Now maybe the stopping audio is history... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2936 a1c6a512-1295-4272-9138-f99709370657 --- firmware/mpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/mpeg.c b/firmware/mpeg.c index cf29dadbf9..6aad963694 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -1074,7 +1074,7 @@ static void start_playback_if_ready(void) the watermark, the file must be smaller than the watermark. We must still play it. */ if(((mp3buf_swapwrite - mp3buf_read) >= MPEG_LOW_WATER) || - !filling) + !filling || dma_underrun) { DEBUGF("P\n"); play_pending = false;