diff options
author | Jeffrey Goode <jeffg7@gmail.com> | 2009-11-02 15:57:20 +0000 |
---|---|---|
committer | Jeffrey Goode <jeffg7@gmail.com> | 2009-11-02 15:57:20 +0000 |
commit | 8f04d5a1dc26da470dfeda987699d2c132f1c627 (patch) | |
tree | 5271baa8313e3e36ded65d52389007006ff97b5f /apps | |
parent | 582225967ff39094295574c2bbbc6a6f54a17f1e (diff) | |
download | rockbox-8f04d5a1dc26da470dfeda987699d2c132f1c627.tar.gz rockbox-8f04d5a1dc26da470dfeda987699d2c132f1c627.zip |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playback.c | 4 |
1 files 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) | |||
1861 | 1861 | ||
1862 | while (1) | 1862 | while (1) |
1863 | { | 1863 | { |
1864 | if (filling != STATE_FILLING) { | 1864 | if (filling != STATE_FILLING && filling != STATE_IDLE) { |
1865 | /* End of buffering, let's calculate the watermark and unboost */ | 1865 | /* End of buffering, let's calculate the watermark and unboost */ |
1866 | set_filebuf_watermark(); | 1866 | set_filebuf_watermark(); |
1867 | cancel_cpu_boost(); | 1867 | cancel_cpu_boost(); |
@@ -1982,7 +1982,7 @@ static void audio_thread(void) | |||
1982 | break; | 1982 | break; |
1983 | 1983 | ||
1984 | default: | 1984 | default: |
1985 | // LOGFQUEUE("audio < default : %08lX", ev.id); | 1985 | /* LOGFQUEUE("audio < default : %08lX", ev.id); */ |
1986 | break; | 1986 | break; |
1987 | } /* end switch */ | 1987 | } /* end switch */ |
1988 | } /* end while */ | 1988 | } /* end while */ |