aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue_print.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/queue_print.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/queue_print.c b/src/queue_print.c
index abd201d9f..3b49dee61 100644
--- a/src/queue_print.c
+++ b/src/queue_print.c
@@ -61,11 +61,8 @@ queue_print_uris(struct client *client, const struct queue *queue,
assert(end <= queue_length(queue));
for (unsigned i = start; i < end; ++i) {
- const struct song *song = queue_get(queue, i);
- char *uri = song_get_uri(song);
-
- client_printf(client, "%i:%s\n", i, uri);
- g_free(uri);
+ client_printf(client, "%i:", i);
+ song_print_uri(client, queue_get(queue, i));
}
}