# HG changeset patch # User yaz # Date 1171436289 28800 # Node ID f684905cf688b7f3c32b2b36ba857d99b8a4129c # Parent ede814584df9ab164b83d0a1e7d49cba3e71b5bc [svn] - add mms:// as a streaming scheme. diff -r ede814584df9 -r f684905cf688 ChangeLog --- a/ChangeLog Tue Feb 13 22:54:57 2007 -0800 +++ b/ChangeLog Tue Feb 13 22:58:09 2007 -0800 @@ -1,3 +1,11 @@ +2007-02-14 06:54:57 +0000 Yoshiki Yazawa + revision [1378] + - screening by extension had not worked. + + trunk/src/madplug/plugin.c | 8 +++++--- + 1 file changed, 5 insertions(+), 3 deletions(-) + + 2007-02-14 06:10:05 +0000 Yoshiki Yazawa revision [1376] - revise input_id3_get_string(). diff -r ede814584df9 -r f684905cf688 src/xspf/xspf.c --- a/src/xspf/xspf.c Tue Feb 13 22:54:57 2007 -0800 +++ b/src/xspf/xspf.c Tue Feb 13 22:58:09 2007 -0800 @@ -278,18 +278,21 @@ track = xmlNewNode(NULL, (xmlChar *)"track"); location = xmlNewNode(NULL, (xmlChar *)"location"); - /* url encode file name. exclude streaming for now. */ - if (strncasecmp("http://", entry->filename, 7) && - strncasecmp("https://", entry->filename, 8)) { /* the rest */ + /* uri escape entry->filename */ + if ( !strncasecmp("http://", entry->filename, 7) || + !strncasecmp("https://", entry->filename, 8) || + !strncasecmp("mms://", entry->filename, 6) ) /* streaming */ + { + gchar *tmp = (gchar *)xmlURIEscape((xmlChar *)entry->filename); + filename = g_strdup(tmp ? tmp : entry->filename); + g_free(tmp); + } + else /* local file */ + { gchar *tmp = (gchar *)xmlPathToURI((const xmlChar *)entry->filename); filename = g_strdup_printf("file://%s", tmp); g_free(tmp); } - else { /* streaming */ - gchar *tmp = (gchar *)xmlURIEscape((xmlChar *)entry->filename); - filename = g_strdup(tmp ? tmp : entry->filename); - g_free(tmp); - } if(!g_utf8_validate(filename, -1, NULL)) continue;