summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-05 14:07:56 +0200
committerwm4 <wm4@nowhere>2013-07-05 14:07:56 +0200
commit0d6f5fbe5433a0040fd6b06d8b8a7cd61952f36e (patch)
treef2509362059720556faff4a84163033e8f378383
parent50274ca3b0d513a421dd2d5e6bb36daf48169891 (diff)
downloadmpv-0d6f5fbe5433a0040fd6b06d8b8a7cd61952f36e.tar.bz2
mpv-0d6f5fbe5433a0040fd6b06d8b8a7cd61952f36e.tar.xz
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.
-rw-r--r--core/playlist.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}