summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-08-10 16:03:21 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-08-10 16:03:21 +0000
commit5565e0dd6dfbd1a160ecbdd2c84af0dc5d279d93 (patch)
tree9a24163ad7b1394313a726c02542e5394318d320 /src/input
parentc916741b33565418c8c574cf5b6f0139af46061b (diff)
downloadxine-lib-5565e0dd6dfbd1a160ecbdd2c84af0dc5d279d93.tar.gz
xine-lib-5565e0dd6dfbd1a160ecbdd2c84af0dc5d279d93.tar.bz2
apply Frantisek patches to handle end of streams better
CVS patchset: 5267 CVS date: 2003/08/10 16:03:21
Diffstat (limited to 'src/input')
-rw-r--r--src/input/input_gnome_vfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input/input_gnome_vfs.c b/src/input/input_gnome_vfs.c
index a0e3b988b..af9e8912c 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.13 2003/07/26 15:44:47 hadess Exp $
+ * $Id: input_gnome_vfs.c,v 1.14 2003/08/10 16:03:21 miguelfreitas Exp $
*/
@@ -94,7 +94,7 @@ gnomevfs_plugin_read (input_plugin_t *this_gen, char *buf, off_t len)
return -1;
} else if (res == GNOME_VFS_ERROR_EOF) {
D("gnomevfs_plugin_read: GNOME_VFS_ERROR_EOF");
- return 0;
+ return num_bytes;
}
if (n <= 0)
@@ -121,7 +121,7 @@ gnomevfs_plugin_read_block (input_plugin_t *this_gen, fifo_buffer_t *fifo,
total_bytes = gnomevfs_plugin_read (this_gen, buf->content, todo);
- if (total_bytes) buf->size = total_bytes;
+ if (total_bytes == todo) buf->size = todo;
else
{
buf->free_buffer (buf);