changeset 709:90d02e8da818 trunk

[svn] - ensure that we only operate on a duplicated fd if our source is from a live fd
author nenolod
date Sat, 24 Feb 2007 08:59:37 -0800
parents 9684a1b4e494
children c75c2b332bce
files ChangeLog src/madplug/replaygain.c
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Feb 24 08:58:32 2007 -0800
+++ b/ChangeLog	Sat Feb 24 08:59:37 2007 -0800
@@ -1,3 +1,11 @@
+2007-02-24 16:58:32 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [1502]
+  - close configdb handle
+  
+  trunk/src/curl/curl.c |    3 ++-
+  1 file changed, 2 insertions(+), 1 deletion(-)
+
+
 2007-02-24 16:09:24 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [1500]
   - proxy support. somebody test this.
--- a/src/madplug/replaygain.c	Sat Feb 24 08:58:32 2007 -0800
+++ b/src/madplug/replaygain.c	Sat Feb 24 08:59:37 2007 -0800
@@ -206,7 +206,7 @@
     glong curpos = 0;
 
     if (file_info->infile) {
-        fp = file_info->infile;
+        fp = vfs_dup(file_info->infile);
         curpos = vfs_ftell(fp);
     } else {
         if ((fp = vfs_fopen(file_info->filename, "rb")) == NULL)