Mercurial > audlegacy-plugins
changeset 577:8182837f7a82 trunk
[svn] - don't percent encode urls beginning with http:// or https:// for now.
author | yaz |
---|---|
date | Mon, 29 Jan 2007 18:35:59 -0800 |
parents | ca3de84e2288 |
children | 550c9e382cf8 |
files | ChangeLog src/xspf/xspf.c |
diffstat | 2 files changed, 16 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Jan 29 17:47:57 2007 -0800 +++ b/ChangeLog Mon Jan 29 18:35:59 2007 -0800 @@ -1,3 +1,11 @@ +2007-01-30 01:47:57 +0000 Yoshiki Yazawa <yaz@cc.rim.or.jp> + revision [1238] + - build fix. adjust prototypes to new input API. + + trunk/src/flac113/plugin.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + + 2007-01-29 17:14:19 +0000 Giacomo Lozito <james@develia.org> revision [1236] - aosd: added missing header in Makefile
--- a/src/xspf/xspf.c Mon Jan 29 17:47:57 2007 -0800 +++ b/src/xspf/xspf.c Mon Jan 29 18:35:59 2007 -0800 @@ -247,8 +247,14 @@ track = xmlNewNode(NULL, "track"); location = xmlNewNode(NULL, "location"); - /* url encode file name */ - filename = (gchar *)xspf_url_encode(entry->filename); + /* url encode file name. exclude streaming for now. */ + if (strncasecmp("http://", entry->filename, 7) && + strncasecmp("https://", entry->filename, 8)) { + filename = (gchar *)xspf_url_encode(entry->filename); + } + else { + filename = strdup(entry->filename); + } if(!g_utf8_validate(filename, -1, NULL)) continue;