# HG changeset patch # User Matti Hamalainen # Date 1222055206 -10800 # Node ID 1f03f17e263e7bfc35d568b747170a7014786cbf # Parent 3e188277c4ed044e65f39b8c87b92c7e08365ccd 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. diff -r 3e188277c4ed -r 1f03f17e263e src/audacious/input.c --- 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);