Actually, size should be a guint (because GST_BUFFER_SIZE(buffer) is a guint too)
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Sat, 7 Jun 2003 09:37:16 +0000 (09:37 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Sat, 7 Jun 2003 09:37:16 +0000 (09:37 +0000)
Original commit message from CVS:
Actually, size should be a guint (because GST_BUFFER_SIZE(buffer) is a guint too)

gst/elements/gstfilesink.c
plugins/elements/gstfilesink.c

index 8adf9e6..23d46ef 100644 (file)
@@ -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,
index 8adf9e6..23d46ef 100644 (file)
@@ -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,