summaryrefslogtreecommitdiff
path: root/firmware/mpeg.c
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2002-08-29 16:23:11 +0000
committerHardeep Sidhu <dyp@pobox.com>2002-08-29 16:23:11 +0000
commita6000f991a78ed4d4c5db30793d28809b22154ec (patch)
treec2a776002c30678456ba6871766555799e68dcd4 /firmware/mpeg.c
parent0227b9681233ebeacca746292969efb36968e1e8 (diff)
downloadrockbox-a6000f991a78ed4d4c5db30793d28809b22154ec.tar.gz
rockbox-a6000f991a78ed4d4c5db30793d28809b22154ec.zip
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
Diffstat (limited to 'firmware/mpeg.c')
-rw-r--r--firmware/mpeg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index 1c2522a9a1..099d295b0a 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -1107,10 +1107,12 @@ static void mpeg_thread(void)
1107 play_pending = false; 1107 play_pending = false;
1108 playing = true; 1108 playing = true;
1109 1109
1110 last_dma_tick = current_tick;
1111 init_dma(); 1110 init_dma();
1112 if (!paused) 1111 if (!paused)
1112 {
1113 last_dma_tick = current_tick;
1113 start_dma(); 1114 start_dma();
1115 }
1114 1116
1115 /* Tell ourselves that we need more data */ 1117 /* Tell ourselves that we need more data */
1116 queue_post(&mpeg_queue, MPEG_NEED_DATA, 0); 1118 queue_post(&mpeg_queue, MPEG_NEED_DATA, 0);