# HG changeset patch
# User ertzing
# Date 1177244986 25200
# Node ID 8b1685669148aab47bc3cb62085def65d9fb8c5c
# Parent  6c0acc7ae799af9f2d34d0fa3f1c64ea8315b195
[svn]
- Make madplug use vfs_fsize()

diff -r 6c0acc7ae799 -r 8b1685669148 ChangeLog
--- 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 
diff -r 6c0acc7ae799 -r 8b1685669148 src/madplug/input.c
--- 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;