diff src/libaudclient/audctrl.c @ 2938:1cdfc508d758 trunk

Fix adding files when Audacious is running. A fix to start Audacious with a file will follow. Aditionally, some old, useless XMMS stuff was removed.
author Jonathan Schleifer <js@h3c.de>
date Fri, 29 Jun 2007 15:52:26 +0200
parents 77a012c3b521
children 3b6d316f8b09
line wrap: on
line diff
--- a/src/libaudclient/audctrl.c	Fri Jun 29 08:40:23 2007 -0500
+++ b/src/libaudclient/audctrl.c	Fri Jun 29 15:52:26 2007 +0200
@@ -64,7 +64,10 @@
  * Sends a list of URIs to Audacious to add to the playlist.
  **/
 void audacious_remote_playlist_add(DBusGProxy *proxy, GList *list) {
-//XXX
+	GList *iter;
+	for (iter = list; iter != NULL; iter = g_list_next(iter))
+		org_atheme_audacious_add(proxy, iter->data, &error);
+	g_clear_error(&error);
 }
 
 /**