changeset 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
files ChangeLog src/audacious/input.c
diffstat 2 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Jan 15 19:24:54 2007 -0800
+++ b/ChangeLog	Mon Jan 15 19:28:19 2007 -0800
@@ -1,3 +1,13 @@
+2007-01-16 03:24:54 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [3694]
+  - use vfs_rewind() instead of vfs_fseek(fd, 0, seek_set) which was wrong
+  - correct reporting in buffer_vfs_fread_impl/buffer_vfs_fwrite_impl
+  
+  trunk/src/audacious/input.c      |    2 +-
+  trunk/src/audacious/vfs_buffer.c |    4 ++--
+  2 files changed, 3 insertions(+), 3 deletions(-)
+
+
 2007-01-16 02:33:42 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [3692]
   - automatically buffering deriv-class of VFSFile. will be used to speed up probing of network sources.
--- 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))
     {