1
0
Fork 0
forked from len0rd/rockbox

In simulator thread, increment id3 offset along with elapsed time so that resume settings are periodically updated.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4120 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Hardeep Sidhu 2003-12-09 08:15:22 +00:00
parent b062547747
commit 166dc17437

View file

@ -3131,7 +3131,10 @@ static void mpeg_thread(void)
if (is_playing) {
id3 = mpeg_current_track();
if (!paused)
{
id3->elapsed+=1000;
id3->offset+=1000;
}
if (id3->elapsed>=id3->length)
mpeg_next();
}