summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/mpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index db8994c..d20981b 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -1126,12 +1126,13 @@ static void mpeg_thread(void)
case MPEG_PAUSE:
DEBUGF("MPEG_PAUSE\n");
/* Stop the current stream */
+ if (playing)
+ playlist_update_resume_info(audio_current_track());
paused = true;
playing = false;
pause_tick = current_tick;
pause_track = current_track_counter;
mp3_play_pause(false);
- playlist_update_resume_info(audio_current_track());
break;
case MPEG_RESUME: