Fix FS#9110 and its maybe-dupes.
commit985bf5afc17499ca8d1f25e2aa030761c525685e
authornicolasp <nicolasp@a1c6a512-1295-4272-9138-f99709370657>
Sun, 29 Jun 2008 11:50:41 +0000 (29 11:50 +0000)
committernicolasp <nicolasp@a1c6a512-1295-4272-9138-f99709370657>
Sun, 29 Jun 2008 11:50:41 +0000 (29 11:50 +0000)
tree90728c0e11e3158516bd93b543f7f26fd47e1bb9
parentcbc244845f97b5561f297b8e7a66d3284e4f700a
Fix FS#9110 and its maybe-dupes.
The issue happened when the value of 'filling' was STATE_FINISHED: the low_buffer_callback wouldn't do anything even when there would still be data remaining to be buffered, leading to a shortage of audio data. Only making the callback act even when filling is STATE_FINISHED (the simple fix) isn't right because of cases when the last track in the playlist is fully buffered. Therefore I added a new state to distinguish between when the last track is fully buffered (STATE_FINISHED) and when it isn't (STATE_END_OF_PLAYLIST).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17875 a1c6a512-1295-4272-9138-f99709370657
apps/playback.c