mirror of https://github.com/mpv-player/mpv
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
.
This commit is contained in:
parent
50274ca3b0
commit
0d6f5fbe54
|
@ -208,6 +208,7 @@ void playlist_transfer_entries(struct playlist *pl, struct playlist *source_pl)
|
||||||
struct playlist_entry *e = source_pl->first;
|
struct playlist_entry *e = source_pl->first;
|
||||||
playlist_unlink(source_pl, e);
|
playlist_unlink(source_pl, e);
|
||||||
playlist_insert(pl, add_after, e);
|
playlist_insert(pl, add_after, e);
|
||||||
|
add_after = e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue