summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/playback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 2875f44505..119e37a073 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1853,6 +1853,7 @@ static void audio_rebuffer(void)
1853 of the track transition. */ 1853 of the track transition. */
1854static int audio_check_new_track(void) 1854static int audio_check_new_track(void)
1855{ 1855{
1856 int track_count = audio_track_count();
1856 int old_track_ridx = track_ridx; 1857 int old_track_ridx = track_ridx;
1857 int i, idx; 1858 int i, idx;
1858 bool forward; 1859 bool forward;
@@ -1958,7 +1959,6 @@ static int audio_check_new_track(void)
1958 } 1959 }
1959 1960
1960 /* If it is not safe to even skip this many track entries */ 1961 /* If it is not safe to even skip this many track entries */
1961 int track_count = audio_track_count();
1962 if (ci.new_track >= track_count || ci.new_track <= track_count - MAX_TRACK) 1962 if (ci.new_track >= track_count || ci.new_track <= track_count - MAX_TRACK)
1963 { 1963 {
1964 ci.new_track = 0; 1964 ci.new_track = 0;