forked from len0rd/rockbox
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
This commit is contained in:
parent
6c3c5fb188
commit
0e12829b9a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue