From a6000f991a78ed4d4c5db30793d28809b22154ec Mon Sep 17 00:00:00 2001 From: Hardeep Sidhu Date: Thu, 29 Aug 2002 16:23:11 +0000 Subject: 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 --- firmware/mpeg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) play_pending = false; playing = true; - last_dma_tick = current_tick; init_dma(); if (!paused) + { + last_dma_tick = current_tick; start_dma(); + } /* Tell ourselves that we need more data */ queue_post(&mpeg_queue, MPEG_NEED_DATA, 0); -- cgit v1.2.3