diff options
author | Bastien Nocera <hadess@users.sourceforge.net> | 2003-07-26 15:44:47 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@users.sourceforge.net> | 2003-07-26 15:44:47 +0000 |
commit | 0015044e029a3ecfad0280f09659c047c919564f (patch) | |
tree | 007f2a36b4978fab6b856c477a6f2d33d53b55b5 | |
parent | 2fca4fccb051d384f30b3b95351d86ef34af27aa (diff) | |
download | xine-lib-0015044e029a3ecfad0280f09659c047c919564f.tar.gz xine-lib-0015044e029a3ecfad0280f09659c047c919564f.tar.bz2 |
- patch by Frantisek Dvorak <valtri@atlas.cz> to fix possible crash on EOS
CVS patchset: 5214
CVS date: 2003/07/26 15:44:47
-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; } |