aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_vector.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-02-13 19:26:00 +0100
committerMax Kellermann <max@duempel.org>2012-02-13 19:26:03 +0100
commitdd26fa67f2c7189636e867710d3c94f93296557f (patch)
tree263cbcdc7552614194ed51cc7f0d0f6ff857fb1b /src/playlist_vector.c
parent89f5e60422de7446a6a4db71a7de32907c8b6cf9 (diff)
downloadmpd-dd26fa67f2c7189636e867710d3c94f93296557f.tar.gz
mpd-dd26fa67f2c7189636e867710d3c94f93296557f.tar.xz
mpd-dd26fa67f2c7189636e867710d3c94f93296557f.zip
playlist_vector: add new playlist to the end of the list
Avoid reversing the order after every update.
Diffstat (limited to 'src/playlist_vector.c')
-rw-r--r--src/playlist_vector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/playlist_vector.c b/src/playlist_vector.c
index be418f8af..adf5b2a22 100644
--- a/src/playlist_vector.c
+++ b/src/playlist_vector.c
@@ -74,7 +74,7 @@ playlist_vector_add(struct list_head *pv,
const char *name, time_t mtime)
{
struct playlist_metadata *pm = playlist_metadata_new(name, mtime);
- list_add(&pm->siblings, pv);
+ list_add_tail(&pm->siblings, pv);
}
bool