summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2003-10-07 21:56:36 +0000
committerDavid Schleef <ds@schleef.org>2003-10-07 21:56:36 +0000
commitf20644277ff2ca3b0e77d2c94089c7b4d28bcd27 (patch)
treee334ab65452ca9bb3f5b780be5a590bbd5f1a876
parent87945fb3a8c4f5832cf10ddde81cbd8e24cd4d22 (diff)
remember to set buffer size.
Original commit message from CVS: remember to set buffer size.
-rw-r--r--gst/elements/gstmultidisksrc.c1
-rw-r--r--gst/elements/gstmultifilesrc.c1
-rw-r--r--plugins/elements/gstmultidisksrc.c1
-rw-r--r--plugins/elements/gstmultifilesrc.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/gst/elements/gstmultidisksrc.c b/gst/elements/gstmultidisksrc.c
index a561588ab..5a27bdf3a 100644
--- a/gst/elements/gstmultidisksrc.c
+++ b/gst/elements/gstmultidisksrc.c
@@ -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);
diff --git a/gst/elements/gstmultifilesrc.c b/gst/elements/gstmultifilesrc.c
index a561588ab..5a27bdf3a 100644
--- a/gst/elements/gstmultifilesrc.c
+++ b/gst/elements/gstmultifilesrc.c
@@ -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);
diff --git a/plugins/elements/gstmultidisksrc.c b/plugins/elements/gstmultidisksrc.c
index a561588ab..5a27bdf3a 100644
--- a/plugins/elements/gstmultidisksrc.c
+++ b/plugins/elements/gstmultidisksrc.c
@@ -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);
diff --git a/plugins/elements/gstmultifilesrc.c b/plugins/elements/gstmultifilesrc.c
index a561588ab..5a27bdf3a 100644
--- a/plugins/elements/gstmultifilesrc.c
+++ b/plugins/elements/gstmultifilesrc.c
@@ -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);