# HG changeset patch # User William Pitcock # Date 1183618107 18000 # Node ID 38b9c5765929c2b9eb5e89883ee941744cdf44c5 # Parent 9bfa9705addf82086c336e4c7ee4d6daa087a953 Remove workarounds for non-VFS compliant plugins. URIs are now mandatory. diff -r 9bfa9705addf -r 38b9c5765929 src/xspf/xspf.c --- a/src/xspf/xspf.c Thu Jul 05 01:01:45 2007 -0500 +++ b/src/xspf/xspf.c Thu Jul 05 01:48:27 2007 -0500 @@ -119,12 +119,8 @@ tmp = g_strdup(str); } - if(strstr(tmp, "file://")) { - location = g_strdup_printf("%s%s", base ? base : "", tmp + 7); - } - else { - location = g_strdup_printf("%s%s", base ? base : "", tmp); - } + location = g_strdup_printf("%s%s", base ? base : "", tmp); + xmlFree(str); g_free(tmp); } @@ -270,11 +266,6 @@ { gchar *tmp = xmlURIUnescapeString(base, -1, NULL); if(tmp) { - if(strstr(tmp, "file://")) { - gchar *tmp2 = g_strdup(tmp + 7); - g_free(tmp); - tmp = tmp2; - } g_free(base); base = tmp; }