summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2008-07-02 21:50:42 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2008-07-02 21:50:42 +0000
commita2191b93afaa61ffbe1319da80fb24c1ea3b2d01 (patch)
treef66093ea7daadb9d6ba6bcae6c9d32d8b3368bd7
parentd341ccef9c72a4ca6c7ad2fa5bdf0f03dbee2b78 (diff)
Fix FS#8964 (CPU remains boosted after buffering). 'filling' needs to be set to false when there's nothing left to buffer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17923 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/buffering.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index e07636d4eb..c3687e83a3 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -1431,6 +1431,8 @@ void buffering_thread(void)
if (filling) {
if (data_counters.remaining > 0 && BUF_USED < buffer_len)
filling = fill_buffer();
+ else if (data_counters.remaining == 0)
+ filling = false;
}
else if (ev.id == SYS_TIMEOUT)
{