Mercurial > audlegacy-plugins
changeset 1211:38b9c5765929 trunk
Remove workarounds for non-VFS compliant plugins. URIs are now mandatory.
author | William Pitcock <nenolod@atheme-project.org> |
---|---|
date | Thu, 05 Jul 2007 01:48:27 -0500 |
parents | 9bfa9705addf |
children | 36cc5e56246e |
files | src/xspf/xspf.c |
diffstat | 1 files changed, 2 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- 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; }