summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/playback.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 198337c..57fca1c 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -687,7 +687,6 @@ static void audio_skip(int direction)
wps_offset += direction;
/* Immediately update the playlist index */
playlist_next(direction);
- last_peek_offset -= direction;
track_changed = true;
}
else
@@ -2046,11 +2045,11 @@ static int audio_check_new_track(void)
}
}
+ /* Update the playlist */
+ last_peek_offset -= ci.new_track;
+
if (auto_dir_skip)
{
- /* Update the playlist */
- last_peek_offset -= ci.new_track;
-
/* If the track change was the result of an auto dir skip,
we need to update the playlist now */
next_playlist_index = playlist_next(ci.new_track);