forked from len0rd/rockbox
Don't set last_dma_tick in swap_data when song is paused. This should fix the bad time display when selecting resume after previous.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2062 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0227b96812
commit
a6000f991a
1 changed files with 3 additions and 1 deletions
|
|
@ -1107,10 +1107,12 @@ static void mpeg_thread(void)
|
||||||
play_pending = false;
|
play_pending = false;
|
||||||
playing = true;
|
playing = true;
|
||||||
|
|
||||||
last_dma_tick = current_tick;
|
|
||||||
init_dma();
|
init_dma();
|
||||||
if (!paused)
|
if (!paused)
|
||||||
|
{
|
||||||
|
last_dma_tick = current_tick;
|
||||||
start_dma();
|
start_dma();
|
||||||
|
}
|
||||||
|
|
||||||
/* Tell ourselves that we need more data */
|
/* Tell ourselves that we need more data */
|
||||||
queue_post(&mpeg_queue, MPEG_NEED_DATA, 0);
|
queue_post(&mpeg_queue, MPEG_NEED_DATA, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue