comparison 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
comparison
equal deleted inserted replaced
2342:f140d0a27093 2343:0df1a48b8fc4
421 filename_proxy = g_strdup(filename); 421 filename_proxy = g_strdup(filename);
422 fd = vfs_fopen(filename, "rb"); 422 fd = vfs_fopen(filename, "rb");
423 423
424 ext = strrchr(filename_proxy, '.') + 1; 424 ext = strrchr(filename_proxy, '.') + 1;
425 425
426 use_ext_filter = (fd != NULL && 426 use_ext_filter = (fd != NULL && (!g_strncasecmp(filename, "/", 1) || !g_strncasecmp(filename, "file://", 7))) ? TRUE : FALSE;
427 (!g_strcasecmp(fd->base->uri_id, "/") ||
428 !g_strcasecmp(fd->base->uri_id, "file"))) ? TRUE : FALSE;
429 427
430 for (node = get_input_list(); node != NULL; node = g_list_next(node)) 428 for (node = get_input_list(); node != NULL; node = g_list_next(node))
431 { 429 {
432 ip = INPUT_PLUGIN(node->data); 430 ip = INPUT_PLUGIN(node->data);
433 431