summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/mpeg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index 82073a6405..2d14d88abf 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -2794,11 +2794,12 @@ static void mpeg_thread(void)
2794 while ( 1 ) { 2794 while ( 1 ) {
2795 if (is_playing) { 2795 if (is_playing) {
2796 id3 = mpeg_current_track(); 2796 id3 = mpeg_current_track();
2797 id3->elapsed+=1000; 2797 if (!paused)
2798 id3->elapsed+=1000;
2798 if (id3->elapsed>=id3->length) 2799 if (id3->elapsed>=id3->length)
2799 mpeg_next(); 2800 mpeg_next();
2800 } 2801 }
2801 sleep(1); 2802 sleep(HZ);
2802 } 2803 }
2803} 2804}
2804#endif 2805#endif