changeset 4777:1f03f17e263e

Buffered VFS file routies do not handle mixed seeks and reads/writes correctly. Switching to unbuffered VFS as a temporary workaround. This unbreaks MP3 probing along with the changes committed to MADPlug.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 22 Sep 2008 06:46:46 +0300
parents 3e188277c4ed
children dde7262d0a35
files src/audacious/input.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/input.c	Sun Sep 21 15:08:30 2008 +0200
+++ b/src/audacious/input.c	Mon Sep 22 06:46:46 2008 +0300
@@ -377,8 +377,12 @@
     }
 
 
-    // open the file with vfs sub-system
-    fd = vfs_buffered_file_new_from_uri(filename_proxy);
+    /* open the file with vfs sub-system
+     * FIXME! XXX! buffered VFS file does not handle mixed seeks and reads/writes
+     * correctly! As a temporary workaround, switching to unbuffered ... -ccr
+     */
+    //fd = vfs_buffered_file_new_from_uri(filename_proxy);
+    fd = vfs_fopen(filename_proxy, "rb");
 
     if (!fd) {
         printf("Unable to read from %s, giving up.\n", filename_proxy);