1
0
Fork 0
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:
Ryan Jackson 2005-10-12 08:49:37 +00:00
parent af0a264cf6
commit 7d51325b1d

View file

@ -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();