summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2006-05-03 15:54:08 +0000
committerHardeep Sidhu <dyp@pobox.com>2006-05-03 15:54:08 +0000
commit7033baea5eee97fd2c0ae7f737a1c7e98f5df225 (patch)
tree5a6f942124015169514dfb917b7191d807cb3aca
parentf67a942c60642858f57224c826c5d70e6cc03715 (diff)
Only reset resume settings when we're really at the end of the playlist
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9867 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playback.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 0dc142a42f..dcc0487dc4 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1817,7 +1817,8 @@ static void audio_stop_playback(void)
if (playing)
{
/* Save the current playing spot, or NULL if the playlist has ended */
- playlist_update_resume_info(playlist_end?NULL:audio_current_track());
+ playlist_update_resume_info(
+ (playlist_end && ci.stop_codec)?NULL:audio_current_track());
}
filebufused = 0;
playing = false;