From 6a267a8be76b3360a6c246b745eecc844f0497e0 Mon Sep 17 00:00:00 2001 From: Hardeep Sidhu Date: Wed, 3 May 2006 16:33:23 +0000 Subject: Don't initiate track change if at end of playlist git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9868 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/playback.c b/apps/playback.c index dcc0487dc4..80760dfe85 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -2125,8 +2125,11 @@ static void audio_new_playlist(void) static void initiate_track_change(long direction) { - playlist_end = false; - ci.new_track += direction; + if (playlist_check(direction)) + { + playlist_end = false; + ci.new_track += direction; + } } static void initiate_dir_change(long direction) -- cgit v1.2.3