From 8f04d5a1dc26da470dfeda987699d2c132f1c627 Mon Sep 17 00:00:00 2001 From: Jeffrey Goode Date: Mon, 2 Nov 2009 15:57:20 +0000 Subject: Playback.c: Eliminate repetitive watermark calculation when the buffer is idle. Also fix evil comment git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23487 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/playback.c b/apps/playback.c index 80a1b87f74..bebbfb1e43 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -1861,7 +1861,7 @@ static void audio_thread(void) while (1) { - if (filling != STATE_FILLING) { + if (filling != STATE_FILLING && filling != STATE_IDLE) { /* End of buffering, let's calculate the watermark and unboost */ set_filebuf_watermark(); cancel_cpu_boost(); @@ -1982,7 +1982,7 @@ static void audio_thread(void) break; default: - // LOGFQUEUE("audio < default : %08lX", ev.id); + /* LOGFQUEUE("audio < default : %08lX", ev.id); */ break; } /* end switch */ } /* end while */ -- cgit v1.2.3