diff options
author | Hardeep Sidhu <dyp@pobox.com> | 2002-08-29 16:23:11 +0000 |
---|---|---|
committer | Hardeep Sidhu <dyp@pobox.com> | 2002-08-29 16:23:11 +0000 |
commit | a6000f991a78ed4d4c5db30793d28809b22154ec (patch) | |
tree | c2a776002c30678456ba6871766555799e68dcd4 /firmware | |
parent | 0227b9681233ebeacca746292969efb36968e1e8 (diff) | |
download | rockbox-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')
-rw-r--r-- | firmware/mpeg.c | 4 |
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); |