summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Arigo <markarigo@gmail.com>2006-10-27 15:42:34 +0000
committerMark Arigo <markarigo@gmail.com>2006-10-27 15:42:34 +0000
commit0e12829b9a7149c955de609acb830e7ce8ddaa0a (patch)
tree89c084d348e549611d7e7288b3008dc7f42fb4dc
parent6c3c5fb188436d0b3b2cb58049c6764a0bb2da98 (diff)
downloadrockbox-0e12829b9a7149c955de609acb830e7ce8ddaa0a.tar.gz
rockbox-0e12829b9a7149c955de609acb830e7ce8ddaa0a.tar.bz2
rockbox-0e12829b9a7149c955de609acb830e7ce8ddaa0a.zip
Do not flood the queue with unnecessary fill buffer requests at the end of a playlist. Should fix the stopping bug in FS#6117.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11366 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c
index d709bd9dc4..feeb61a3ff 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1254,7 +1254,7 @@ static void codec_advance_buffer_counters(size_t amount)
/* Start buffer filling as necessary. */
if (!pcmbuf_is_lowdata() && !filling)
{
- if (FILEBUFUSED < conf_watermark && playing)
+ if (FILEBUFUSED < conf_watermark && playing && !playlist_end)
{
LOGFQUEUE("codec > audio Q_AUDIO_FILL_BUFFER");
queue_post(&audio_queue, Q_AUDIO_FILL_BUFFER, 0);