diff src/audacious/input.c @ 2343:0df1a48b8fc4 trunk

[svn] - compare against the uri, not the VFSConstructor class the fd comes from
author nenolod
date Mon, 15 Jan 2007 19:28:19 -0800
parents f140d0a27093
children 3196a09a03e5
line wrap: on
line diff
--- a/src/audacious/input.c	Mon Jan 15 19:24:54 2007 -0800
+++ b/src/audacious/input.c	Mon Jan 15 19:28:19 2007 -0800
@@ -423,9 +423,7 @@
 
     ext = strrchr(filename_proxy, '.') + 1;
 
-    use_ext_filter = (fd != NULL &&
-    (!g_strcasecmp(fd->base->uri_id, "/") || 
-    !g_strcasecmp(fd->base->uri_id, "file"))) ? TRUE : FALSE;
+    use_ext_filter = (fd != NULL && (!g_strncasecmp(filename, "/", 1) || !g_strncasecmp(filename, "file://", 7))) ? TRUE : FALSE;
 
     for (node = get_input_list(); node != NULL; node = g_list_next(node))
     {