From f20644277ff2ca3b0e77d2c94089c7b4d28bcd27 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 7 Oct 2003 21:56:36 +0000 Subject: [PATCH] remember to set buffer size. Original commit message from CVS: remember to set buffer size. --- gst/elements/gstmultidisksrc.c | 1 + gst/elements/gstmultifilesrc.c | 1 + plugins/elements/gstmultidisksrc.c | 1 + plugins/elements/gstmultifilesrc.c | 1 + 4 files changed, 4 insertions(+) diff --git a/gst/elements/gstmultidisksrc.c b/gst/elements/gstmultidisksrc.c index a561588..5a27bdf 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 a561588..5a27bdf 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 a561588..5a27bdf 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 a561588..5a27bdf 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); -- 2.7.4