diff --git a/gst/elements/gstmultidisksrc.c b/gst/elements/gstmultidisksrc.c index a561588abf..5a27bdf3a1 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 a561588abf..5a27bdf3a1 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 a561588abf..5a27bdf3a1 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 a561588abf..5a27bdf3a1 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);