Mercurial > audlegacy-plugins
comparison src/xspf/xspf.c @ 1271:173a67e7e4f8
disable unescape local file for now.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Sun, 15 Jul 2007 19:50:15 +0900 |
parents | 38b9c5765929 |
children | d1c66f8ccf73 |
comparison
equal
deleted
inserted
replaced
1270:d73eed18f3f4 | 1271:173a67e7e4f8 |
---|---|
110 if(nptr->type == XML_ELEMENT_NODE | 110 if(nptr->type == XML_ELEMENT_NODE |
111 && !xmlStrcmp(nptr->name, (xmlChar *)"location")) { | 111 && !xmlStrcmp(nptr->name, (xmlChar *)"location")) { |
112 gchar *str = (gchar *)xmlNodeGetContent(nptr); | 112 gchar *str = (gchar *)xmlNodeGetContent(nptr); |
113 gchar *tmp; | 113 gchar *tmp; |
114 | 114 |
115 #if 0 | |
115 if(!is_remote(str)) { /* local file */ | 116 if(!is_remote(str)) { /* local file */ |
116 tmp = (gchar *)xmlURIUnescapeString(str, -1, NULL); | 117 tmp = (gchar *)xmlURIUnescapeString(str, -1, NULL); |
117 } | 118 } |
118 else { /* streaming */ | 119 else { /* streaming */ |
119 tmp = g_strdup(str); | 120 tmp = g_strdup(str); |
120 } | 121 } |
121 | 122 #else |
123 tmp = g_strdup(str); // XXX | |
124 #endif | |
122 location = g_strdup_printf("%s%s", base ? base : "", tmp); | 125 location = g_strdup_printf("%s%s", base ? base : "", tmp); |
123 | 126 |
124 xmlFree(str); | 127 xmlFree(str); |
125 g_free(tmp); | 128 g_free(tmp); |
126 } | 129 } |