remember to set buffer size.
authorDavid Schleef <ds@schleef.org>
Tue, 7 Oct 2003 21:56:36 +0000 (21:56 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 7 Oct 2003 21:56:36 +0000 (21:56 +0000)
Original commit message from CVS:
remember to set buffer size.

gst/elements/gstmultidisksrc.c
gst/elements/gstmultifilesrc.c
plugins/elements/gstmultidisksrc.c
plugins/elements/gstmultifilesrc.c

index a561588..5a27bdf 100644 (file)
@@ -230,6 +230,7 @@ gst_multidisksrc_get (GstPad *pad)
 
   /* simply set the buffer to point to the correct region of the file */
   GST_BUFFER_DATA (buf) = src->map;
+  GST_BUFFER_SIZE (buf) = src->size;
   GST_BUFFER_OFFSET (buf) = 0;
   GST_BUFFER_FLAG_SET (buf, GST_BUFFER_DONTFREE);
 
index a561588..5a27bdf 100644 (file)
@@ -230,6 +230,7 @@ gst_multidisksrc_get (GstPad *pad)
 
   /* simply set the buffer to point to the correct region of the file */
   GST_BUFFER_DATA (buf) = src->map;
+  GST_BUFFER_SIZE (buf) = src->size;
   GST_BUFFER_OFFSET (buf) = 0;
   GST_BUFFER_FLAG_SET (buf, GST_BUFFER_DONTFREE);
 
index a561588..5a27bdf 100644 (file)
@@ -230,6 +230,7 @@ gst_multidisksrc_get (GstPad *pad)
 
   /* simply set the buffer to point to the correct region of the file */
   GST_BUFFER_DATA (buf) = src->map;
+  GST_BUFFER_SIZE (buf) = src->size;
   GST_BUFFER_OFFSET (buf) = 0;
   GST_BUFFER_FLAG_SET (buf, GST_BUFFER_DONTFREE);
 
index a561588..5a27bdf 100644 (file)
@@ -230,6 +230,7 @@ gst_multidisksrc_get (GstPad *pad)
 
   /* simply set the buffer to point to the correct region of the file */
   GST_BUFFER_DATA (buf) = src->map;
+  GST_BUFFER_SIZE (buf) = src->size;
   GST_BUFFER_OFFSET (buf) = 0;
   GST_BUFFER_FLAG_SET (buf, GST_BUFFER_DONTFREE);