forked from len0rd/rockbox
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
This commit is contained in:
parent
93fb4988d5
commit
81b32e0931
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue