diff src/audacious/input.c @ 2399:9b7b11176d4e trunk

[svn] - should not pass null fd to input plugins.
author yaz
date Wed, 24 Jan 2007 18:40:07 -0800
parents e2aaa7dca389
children b23f52fe132f
line wrap: on
line diff
--- a/src/audacious/input.c	Wed Jan 24 15:15:46 2007 -0800
+++ b/src/audacious/input.c	Wed Jan 24 18:40:07 2007 -0800
@@ -425,6 +425,9 @@
     filename_proxy = g_strdup(filename);
     fd = vfs_buffered_file_new_from_uri(filename_proxy);
 
+    if(!fd)
+        return NULL;
+    
     ext = strrchr(filename_proxy, '.') + 1;
 
     use_ext_filter = (fd != NULL && (!g_strncasecmp(filename, "/", 1) || !g_strncasecmp(filename, "file://", 7))) ? TRUE : FALSE;