diff src/madplug/input.c @ 974:8b1685669148 trunk

[svn] - Make madplug use vfs_fsize()
author ertzing
date Sun, 22 Apr 2007 05:29:46 -0700
parents d200de50a1fc
children e46b98155d5d
line wrap: on
line diff
--- 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;