changeset 1665:de0a0927a5c2 trunk

[svn] Revert broken commit r2209 and fseek -> vfs_fseek, missed in commit r2265.
author chainsaw
date Sun, 10 Sep 2006 15:36:17 -0700
parents 3dc347b350ee
children 77baac5f7439
files ChangeLog Plugins/Input/wma/libffwma/mem.c Plugins/Output/disk_writer/disk_writer.c
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Sep 10 14:28:45 2006 -0700
+++ b/ChangeLog	Sun Sep 10 15:36:17 2006 -0700
@@ -1,3 +1,12 @@
+2006-09-10 21:28:45 +0000  Tony Vroon <chainsaw@gentoo.org>
+  revision [2265]
+  Have output plugins use the VFS layer too.
+
+  Changes:        Modified:
+  +5 -4           trunk/Plugins/Output/OSS/configure.c  
+  +7 -6           trunk/Plugins/Output/disk_writer/disk_writer.c  
+
+
 2006-09-10 21:01:14 +0000  Tony Vroon <chainsaw@gentoo.org>
   revision [2263]
   Use the VFS layer.
--- a/Plugins/Input/wma/libffwma/mem.c	Sun Sep 10 14:28:45 2006 -0700
+++ b/Plugins/Input/wma/libffwma/mem.c	Sun Sep 10 15:36:17 2006 -0700
@@ -45,7 +45,7 @@
 {
     void *ptr;
 
-#ifdef linux
+#ifdef __GLIBC__
     posix_memalign(&ptr, 16, size);
 #else
     ptr = malloc(size);
--- a/Plugins/Output/disk_writer/disk_writer.c	Sun Sep 10 14:28:45 2006 -0700
+++ b/Plugins/Output/disk_writer/disk_writer.c	Sun Sep 10 15:36:17 2006 -0700
@@ -265,7 +265,7 @@
 		header.length = GUINT32_TO_LE(written + sizeof (struct wavhead) - 8);
 
 		header.data_length = GUINT32_TO_LE(written);
-		fseek(output_file, 0, SEEK_SET);
+		vfs_fseek(output_file, 0, SEEK_SET);
 		vfs_fwrite(&header, sizeof (struct wavhead), 1, output_file);
 
 		vfs_fclose(output_file);