changeset 711:5c77a76df782 trunk

[svn] - always close/unref the fd
author nenolod
date Sat, 24 Feb 2007 09:03:09 -0800
parents c75c2b332bce
children 117ae74e2715
files ChangeLog src/madplug/replaygain.c
diffstat 2 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Feb 24 09:02:41 2007 -0800
+++ b/ChangeLog	Sat Feb 24 09:03:09 2007 -0800
@@ -1,3 +1,11 @@
+2007-02-24 17:02:41 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [1506]
+  - C99 style enforcement
+  
+  trunk/src/madplug/replaygain.c |    9 ++++-----
+  1 file changed, 4 insertions(+), 5 deletions(-)
+
+
 2007-02-24 16:59:37 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [1504]
   - ensure that we only operate on a duplicated fd if our source is 
--- a/src/madplug/replaygain.c	Sat Feb 24 09:02:41 2007 -0800
+++ b/src/madplug/replaygain.c	Sat Feb 24 09:03:09 2007 -0800
@@ -254,8 +254,5 @@
         || file_info->replaygain_track_scale != -1)
         file_info->has_replaygain = TRUE;
 
-    if (curpos)
-        vfs_fseek(fp, curpos, SEEK_SET);
-    else
-        vfs_fclose(fp);        
+    vfs_fclose(fp);        
 }