1
0
Fork 0
forked from len0rd/rockbox

Keep the WPS progress bar updating at end of playback

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11266 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Steve Bavin 2006-10-19 07:43:07 +00:00
parent 48b4ac3745
commit 004ee26e17

View file

@ -1839,7 +1839,10 @@ static void codec_thread(void)
/* Wait for the audio to stop playing before
* triggering the WPS exit */
while(pcm_is_playing())
sleep(1);
{
CUR_TI->id3.elapsed = CUR_TI->id3.length - pcmbuf_get_latency();
yield();
}
LOGFQUEUE("codec > audio Q_AUDIO_STOP");
queue_post(&audio_queue, Q_AUDIO_STOP, 0);
break;