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:
parent
b062547747
commit
166dc17437
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue