# HG changeset patch # User nenolod # Date 1169456493 28800 # Node ID d41965d1806a3fb5ae190ff80f4bafc0e1fdb097 # Parent d49913587458447b06d142106cb039d352d738d5 [svn] - in vfs_buffered_file, we should only switch to live FD after 32768, not AT 32768. diff -r d49913587458 -r d41965d1806a ChangeLog --- a/ChangeLog Sun Jan 21 20:45:17 2007 -0800 +++ b/ChangeLog Mon Jan 22 01:01:33 2007 -0800 @@ -1,3 +1,12 @@ +2007-01-22 04:45:17 +0000 William Pitcock + revision [3772] + - changes to the nature of URI handling in the VFS subsystem, will be + chased momentarily in plugins. + + trunk/src/audacious/vfs.c | 7 ++----- + 1 file changed, 2 insertions(+), 5 deletions(-) + + 2007-01-21 15:11:08 +0000 William Pitcock revision [3770] - handle empty playlists gracefully diff -r d49913587458 -r d41965d1806a src/audacious/vfs_buffered_file.c --- a/src/audacious/vfs_buffered_file.c Sun Jan 21 20:45:17 2007 -0800 +++ b/src/audacious/vfs_buffered_file.c Mon Jan 22 01:01:33 2007 -0800 @@ -58,7 +58,7 @@ /* is this request within the buffered area, or should we switch to * an FD? --nenolod */ - if ((vfs_ftell(handle->buffer)) + (size * nmemb) >= + if ((vfs_ftell(handle->buffer)) + (size * nmemb) > ((VFSBuffer *) handle->buffer->handle)->size) handle->which = TRUE; @@ -84,7 +84,7 @@ /* is this request within the buffered area, or should we switch to * an FD? --nenolod */ - if ((vfs_ftell(handle->buffer)) + 1 >= + if ((vfs_ftell(handle->buffer)) + 1 > ((VFSBuffer *) handle->buffer->handle)->size) handle->which = TRUE;