summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Goode <jeffg7@gmail.com>2009-11-02 15:57:20 +0000
committerJeffrey Goode <jeffg7@gmail.com>2009-11-02 15:57:20 +0000
commit8f04d5a1dc26da470dfeda987699d2c132f1c627 (patch)
tree5271baa8313e3e36ded65d52389007006ff97b5f
parent582225967ff39094295574c2bbbc6a6f54a17f1e (diff)
downloadrockbox-8f04d5a1dc26da470dfeda987699d2c132f1c627.zip
rockbox-8f04d5a1dc26da470dfeda987699d2c132f1c627.tar.gz
rockbox-8f04d5a1dc26da470dfeda987699d2c132f1c627.tar.bz2
rockbox-8f04d5a1dc26da470dfeda987699d2c132f1c627.tar.xz
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
-rw-r--r--apps/playback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 80a1b87..bebbfb1 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 */