aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue_print.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/queue_print.c')
-rw-r--r--src/queue_print.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/queue_print.c b/src/queue_print.c
index 2ca9ccc34..53ddfb689 100644
--- a/src/queue_print.c
+++ b/src/queue_print.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2009 The Music Player Daemon Project
+ * Copyright (C) 2003-2010 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -17,12 +17,14 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include "config.h"
#include "queue_print.h"
#include "queue.h"
#include "song.h"
#include "song_print.h"
#include "locate.h"
#include "client.h"
+#include "mapper.h"
/**
* Send detailed information about a range of songs in the queue to a
@@ -60,11 +62,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));
}
}