summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
228#endif 228#endif
229 229
230#ifndef SIMULATOR 230#ifndef SIMULATOR
231static int last_tag = 0;
232static int last_dma_tick = 0; 231static int last_dma_tick = 0;
233static int pause_tick = 0; 232static int pause_tick = 0;
234 233
@@ -710,11 +709,12 @@ static void mpeg_thread(void)
710 stop_dma(); 709 stop_dma();
711 710
712 reset_mp3_buffer(); 711 reset_mp3_buffer();
712 remove_all_tags();
713 713
714 /* Open the next file */ 714 /* Open the next file */
715 if (mpeg_file >= 0) 715 if (mpeg_file >= 0)
716 close(mpeg_file); 716 close(mpeg_file);
717 last_tag=0; 717
718 if (new_file(true) < 0) { 718 if (new_file(true) < 0) {
719 DEBUGF("No more files to play\n"); 719 DEBUGF("No more files to play\n");
720 filling = false; 720 filling = false;
@@ -739,10 +739,12 @@ static void mpeg_thread(void)
739 stop_dma(); 739 stop_dma();
740 740
741 reset_mp3_buffer(); 741 reset_mp3_buffer();
742 remove_all_tags();
743
742 /* Open the next file */ 744 /* Open the next file */
743 if (mpeg_file >= 0) 745 if (mpeg_file >= 0)
744 close(mpeg_file); 746 close(mpeg_file);
745 last_tag=0; 747
746 if (new_file(false) < 0) { 748 if (new_file(false) < 0) {
747 DEBUGF("No more files to play\n"); 749 DEBUGF("No more files to play\n");
748 filling = false; 750 filling = false;