forked from len0rd/rockbox
Skip buffer refill after end of playlist (conf_watermark == 0). With 'move to next folder' enabled, the last song in the folder was being buffered a second time if filebufused == 0 and the end of the playlist had been reached. This caused moving to the next folder to fail on some Vorbis files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7622 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
af0a264cf6
commit
7d51325b1d
1 changed files with 3 additions and 2 deletions
|
@ -1345,8 +1345,9 @@ void initialize_buffer_fill(void)
|
|||
void audio_check_buffer(void)
|
||||
{
|
||||
/* Start buffer filling as necessary. */
|
||||
if ((filebufused > conf_watermark || !queue_empty(&audio_queue)
|
||||
|| !playing || ci.stop_codec || ci.reload_codec) && !filling)
|
||||
if ((!conf_watermark || filebufused > conf_watermark
|
||||
|| !queue_empty(&audio_queue) || !playing || ci.stop_codec
|
||||
|| ci.reload_codec) && !filling)
|
||||
return ;
|
||||
|
||||
initialize_buffer_fill();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue