changeset 974:8b1685669148 trunk

[svn] - Make madplug use vfs_fsize()
author ertzing
date Sun, 22 Apr 2007 05:29:46 -0700
parents 6c0acc7ae799
children 8bdd0d76a0ca
files ChangeLog src/madplug/input.c
diffstat 2 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Apr 22 04:31:31 2007 -0700
+++ b/ChangeLog	Sun Apr 22 05:29:46 2007 -0700
@@ -1,3 +1,11 @@
+2007-04-22 11:31:31 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2086]
+  - build the lastfm VFS plugin if the scrobbler plugin is going to be built.
+  
+  trunk/configure.ac |    1 +
+  1 file changed, 1 insertion(+)
+
+
 2007-04-22 11:16:08 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2084]
   Add lastfm:// transport, an abstract VFS class which derives from curl 
--- a/src/madplug/input.c	Sun Apr 22 04:31:31 2007 -0700
+++ b/src/madplug/input.c	Sun Apr 22 05:29:46 2007 -0700
@@ -117,9 +117,7 @@
         return FALSE;
     }
     // obtain file size
-    vfs_fseek(info->infile, 0, SEEK_END);
-    info->size = vfs_ftell(info->infile);
-    vfs_fseek(info->infile, 0, SEEK_SET);
+    info->size = vfs_fsize(info->infile);
     info->remote = info->size == 0 ? TRUE : FALSE; //proxy connection may result in non-zero size.
     if(audmad_is_remote((gchar *)url))
         info->remote = TRUE;