Mercurial > audlegacy
comparison src/audacious/input.c @ 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 | 6be17674ae8c |
| children | 792338a0f6ce |
comparison
equal
deleted
inserted
replaced
| 4776:3e188277c4ed | 4777:1f03f17e263e |
|---|---|
| 375 g_free(filename_proxy); | 375 g_free(filename_proxy); |
| 376 return NULL; | 376 return NULL; |
| 377 } | 377 } |
| 378 | 378 |
| 379 | 379 |
| 380 // open the file with vfs sub-system | 380 /* open the file with vfs sub-system |
| 381 fd = vfs_buffered_file_new_from_uri(filename_proxy); | 381 * FIXME! XXX! buffered VFS file does not handle mixed seeks and reads/writes |
| 382 * correctly! As a temporary workaround, switching to unbuffered ... -ccr | |
| 383 */ | |
| 384 //fd = vfs_buffered_file_new_from_uri(filename_proxy); | |
| 385 fd = vfs_fopen(filename_proxy, "rb"); | |
| 382 | 386 |
| 383 if (!fd) { | 387 if (!fd) { |
| 384 printf("Unable to read from %s, giving up.\n", filename_proxy); | 388 printf("Unable to read from %s, giving up.\n", filename_proxy); |
| 385 g_free(filename_proxy); | 389 g_free(filename_proxy); |
| 386 return NULL; | 390 return NULL; |
