diff options
author | Max Kellermann <max@duempel.org> | 2012-08-21 19:17:14 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-21 19:17:14 +0200 |
commit | 5ad21d7e98e1f21e09de66c1e0275ea2ab5b74e4 (patch) | |
tree | b8b13a0b3109aa6124877f5c6d902928c82e06db /src/queue.c | |
parent | ef5125f8f4ee992c5a8f24d1b93851db5df5c43d (diff) | |
download | mpd-5ad21d7e98e1f21e09de66c1e0275ea2ab5b74e4.tar.gz mpd-5ad21d7e98e1f21e09de66c1e0275ea2ab5b74e4.tar.xz mpd-5ad21d7e98e1f21e09de66c1e0275ea2ab5b74e4.zip |
queue_save: save song priorities
Diffstat (limited to '')
-rw-r--r-- | src/queue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/queue.c b/src/queue.c index cd932875e..4fe564a35 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, .id = id, .version = queue->version, - .priority = 0, + .priority = priority, }; queue->order[queue->length] = queue->length; |