From 61aba93922708d9d2bcb3d69d5b69c6e53f13d52 Mon Sep 17 00:00:00 2001 From: waker Date: Tue, 22 Feb 2011 21:24:06 +0100 Subject: set playlist tail to point to the last track after sort --- playlist.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playlist.c b/playlist.c index 6be4d4bb..0f74e36a 100644 --- a/playlist.c +++ b/playlist.c @@ -3118,6 +3118,9 @@ pl_sort (int iter, int id, const char *format, int ascending) { } prev = it; } + + playlist->tail[iter] = array[playlist->count[iter]-1]; + free (array); struct timeval tm2; -- cgit v1.2.3