From e3cfc0c701edb2cb5ced0778a026823160007873 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sat, 7 Jun 2003 09:37:16 +0000 Subject: [PATCH] Actually, size should be a guint (because GST_BUFFER_SIZE(buffer) is a guint too) Original commit message from CVS: Actually, size should be a guint (because GST_BUFFER_SIZE(buffer) is a guint too) --- gst/elements/gstfilesink.c | 2 +- plugins/elements/gstfilesink.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/elements/gstfilesink.c b/gst/elements/gstfilesink.c index 8adf9e6..23d46ef 100644 --- a/gst/elements/gstfilesink.c +++ b/gst/elements/gstfilesink.c @@ -380,7 +380,7 @@ gst_filesink_chain (GstPad *pad, GstBuffer *buf) if (GST_FLAG_IS_SET (filesink, GST_FILESINK_OPEN)) { - size_t bytes_written = 0; + guint bytes_written = 0; do { size_t wrote = fwrite (GST_BUFFER_DATA (buf) + bytes_written, 1, GST_BUFFER_SIZE (buf) - bytes_written, diff --git a/plugins/elements/gstfilesink.c b/plugins/elements/gstfilesink.c index 8adf9e6..23d46ef 100644 --- a/plugins/elements/gstfilesink.c +++ b/plugins/elements/gstfilesink.c @@ -380,7 +380,7 @@ gst_filesink_chain (GstPad *pad, GstBuffer *buf) if (GST_FLAG_IS_SET (filesink, GST_FILESINK_OPEN)) { - size_t bytes_written = 0; + guint bytes_written = 0; do { size_t wrote = fwrite (GST_BUFFER_DATA (buf) + bytes_written, 1, GST_BUFFER_SIZE (buf) - bytes_written, -- 2.7.4