summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2005-07-07 16:57:10 +0000
committerHardeep Sidhu <dyp@pobox.com>2005-07-07 16:57:10 +0000
commit81b32e093178d9de3b63e8ea571e5df6a65497ff (patch)
treee1d9a8c4f25ed2e79529187e2e15838ec353f9b7 /firmware
parent93fb4988d5dbd0e886f8616808deb583b6c20329 (diff)
downloadrockbox-81b32e093178d9de3b63e8ea571e5df6a65497ff.tar.gz
rockbox-81b32e093178d9de3b63e8ea571e5df6a65497ff.zip
Only update resume info when playing. Fixes resume when exiting recording/radio screens.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7056 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/mpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index db8994c3bc..d20981be7b 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: