summaryrefslogtreecommitdiff
path: root/firmware/mpeg.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-07-27 00:31:38 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-07-27 00:31:38 +0000
commitab042e6e51b5f6c9249788a45eff89c98e61de00 (patch)
tree987d75b6c4e3c9b7d25b68d11a6d0caa181b6036 /firmware/mpeg.c
parent96763eadce9196ea7804c42eb0e535ded19eb8a2 (diff)
NEXT and PREV now works again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1458 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/mpeg.c')
-rw-r--r--firmware/mpeg.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index 359db614ce..893ffe5dcb 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -228,7 +228,6 @@ static void remove_all_tags(void)
#endif
#ifndef SIMULATOR
-static int last_tag = 0;
static int last_dma_tick = 0;
static int pause_tick = 0;
@@ -710,11 +709,12 @@ static void mpeg_thread(void)
stop_dma();
reset_mp3_buffer();
+ remove_all_tags();
/* Open the next file */
if (mpeg_file >= 0)
close(mpeg_file);
- last_tag=0;
+
if (new_file(true) < 0) {
DEBUGF("No more files to play\n");
filling = false;
@@ -739,10 +739,12 @@ static void mpeg_thread(void)
stop_dma();
reset_mp3_buffer();
+ remove_all_tags();
+
/* Open the next file */
if (mpeg_file >= 0)
close(mpeg_file);
- last_tag=0;
+
if (new_file(false) < 0) {
DEBUGF("No more files to play\n");
filling = false;