changeset 2115:13da6ea5e4da trunk

[svn] - make sure fd is not NULL before checking it's URI namespace
author nenolod
date Tue, 12 Dec 2006 23:13:46 -0800
parents 180e466f96bc
children 8aaa6f29c3ca
files ChangeLog audacious/input.c
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Dec 12 23:13:01 2006 -0800
+++ b/ChangeLog	Tue Dec 12 23:13:46 2006 -0800
@@ -1,3 +1,11 @@
+2006-12-13 07:13:01 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [3233]
+  - at present, only use extension filtering in the file:// namespace.
+  
+  trunk/audacious/input.c |    7 ++++++-
+  1 file changed, 6 insertions(+), 1 deletion(-)
+
+
 2006-12-13 04:48:13 +0000  William Pitcock <nenolod@nenolod.net>
   revision [3231]
   - warning fix
--- a/audacious/input.c	Tue Dec 12 23:13:01 2006 -0800
+++ b/audacious/input.c	Tue Dec 12 23:13:46 2006 -0800
@@ -423,9 +423,9 @@
 
     ext = strrchr(filename_proxy, '.') + 1;
 
-    use_ext_filter = 
+    use_ext_filter = (fd != NULL &&
 	(!g_strcasecmp(fd->base->uri_id, "/") || 
-	!g_strcasecmp(fd->base->uri_id, "file")) ? TRUE : FALSE;
+	!g_strcasecmp(fd->base->uri_id, "file"))) ? TRUE : FALSE;
 
     for (node = get_input_list(); node != NULL; node = g_list_next(node))
     {