aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-25 10:28:33 +0200
committerMax Kellermann <max@duempel.org>2012-08-25 10:28:33 +0200
commitdef21cc87ef8eb1ee78be1235a2de73ed253fcaf (patch)
tree056616e05ab4d115c0415abe048a74bd6f6c857c /src/queue.c
parent488c1eb87b1b484da67ea0ccbb360bf1a6968003 (diff)
parentacaa725478ae5e6e4fff9e07cf8637d17d314c41 (diff)
downloadmpd-def21cc87ef8eb1ee78be1235a2de73ed253fcaf.tar.gz
mpd-def21cc87ef8eb1ee78be1235a2de73ed253fcaf.tar.xz
mpd-def21cc87ef8eb1ee78be1235a2de73ed253fcaf.zip
Merge branch 'v0.17.x'
Conflicts: src/queue_save.c
Diffstat (limited to 'src/queue.c')
-rw-r--r--src/queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/queue.c b/src/queue.c
index 2a489242c..098cbcce9 100644
--- a/src/queue.c
+++ b/src/queue.c
@@ -96,7 +96,7 @@ queue_modify_all(struct queue *queue)
}
unsigned
-queue_append(struct queue *queue, struct song *song)
+queue_append(struct queue *queue, struct song *song, uint8_t priority)
{
unsigned id = queue_generate_id(queue);
@@ -106,7 +106,7 @@ queue_append(struct queue *queue, struct song *song)
.song = song_dup_detached(song),
.id = id,
.version = queue->version,
- .priority = 0,
+ .priority = priority,
};
queue->order[queue->length] = queue->length;