From 0d6f5fbe5433a0040fd6b06d8b8a7cd61952f36e Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 5 Jul 2013 14:07:56 +0200 Subject: playlist: don't add entries in reverse The entries were always added after the insertion point - but that means the entries are appended in reverse order. So update the insertion point on each entry. Regression introduced by commit 5f664d7. --- core/playlist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/playlist.c b/core/playlist.c index 0d96ee5d0b..b016cebca6 100644 --- a/core/playlist.c +++ b/core/playlist.c @@ -208,6 +208,7 @@ void playlist_transfer_entries(struct playlist *pl, struct playlist *source_pl) struct playlist_entry *e = source_pl->first; playlist_unlink(source_pl, e); playlist_insert(pl, add_after, e); + add_after = e; } } -- cgit v1.2.3