Blob Blame History Raw
diff -Nur audacious-plugins-2.2-orig/src/xspf/xspf.c audacious-plugins-2.2-xspf/src/xspf/xspf.c
--- audacious-plugins-2.2-orig/src/xspf/xspf.c	2009-11-22 23:49:54.000000000 +0100
+++ audacious-plugins-2.2-xspf/src/xspf/xspf.c	2009-12-31 14:33:33.000000000 +0100
@@ -106,8 +106,8 @@
             if (!xmlStrcmp(nptr->name, (xmlChar *)"location")) {
                 /* Location is a special case */
                 gchar *str = (gchar *)xmlNodeGetContent(nptr);
-                if (!strstr(str, "://") && base)
-                    location = g_strdup_printf("%s/%s", base, str);
+                if (!strstr(str, "://") && base && str[0]!='/')
+                    location = g_strdup_printf("file://%s/%s", base, str);
                 else
                     location = g_strdup(str);
                 xmlFree(str);