diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/input/input_gnome_vfs.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/input/input_gnome_vfs.c b/src/input/input_gnome_vfs.c index 9bed1865b..a0e3b988b 100644 --- a/src/input/input_gnome_vfs.c +++ b/src/input/input_gnome_vfs.c @@ -18,7 +18,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: input_gnome_vfs.c,v 1.12 2003/07/19 16:45:38 komadori Exp $ + * $Id: input_gnome_vfs.c,v 1.13 2003/07/26 15:44:47 hadess Exp $ */ @@ -121,15 +121,13 @@ gnomevfs_plugin_read_block (input_plugin_t *this_gen, fifo_buffer_t *fifo, total_bytes = gnomevfs_plugin_read (this_gen, buf->content, todo); - while (total_bytes != todo) + if (total_bytes) buf->size = total_bytes; + else { buf->free_buffer (buf); buf = NULL; } - if (buf != NULL) - buf->size = total_bytes; - return buf; } |