summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
Diffstat (limited to 'gst')
-rw-r--r--gst/colorspace/gstcolorspace.c3
-rw-r--r--gst/speed/gstspeed.c2
-rw-r--r--gst/videocrop/gstvideocrop.c5
3 files changed, 6 insertions, 4 deletions
diff --git a/gst/colorspace/gstcolorspace.c b/gst/colorspace/gstcolorspace.c
index 5f2d2726..68de0435 100644
--- a/gst/colorspace/gstcolorspace.c
+++ b/gst/colorspace/gstcolorspace.c
@@ -551,7 +551,8 @@ gst_colorspace_chain (GstPad * pad, GstData * _data)
g_critical ("input size is smaller than expected");
}
- outbuf = gst_pad_alloc_buffer (space->srcpad, GST_BUFFER_OFFSET_NONE,
+ outbuf =
+ gst_pad_alloc_buffer_and_set_caps (space->srcpad, GST_BUFFER_OFFSET_NONE,
space->src_size);
converter = gst_colorspace_converters + space->converter_index;
diff --git a/gst/speed/gstspeed.c b/gst/speed/gstspeed.c
index fb04f35e..4e11891a 100644
--- a/gst/speed/gstspeed.c
+++ b/gst/speed/gstspeed.c
@@ -686,7 +686,7 @@ speed_chain (GstPad * pad, GstBuffer * in_buf)
filter->sample_size;
result =
- gst_pad_alloc_buffer (filter->srcpad, -1, out_size,
+ gst_pad_alloc_buffer_and_set_caps (filter->srcpad, -1, out_size,
GST_PAD_CAPS (filter->srcpad), &out_buf);
if (result != GST_FLOW_OK) {
diff --git a/gst/videocrop/gstvideocrop.c b/gst/videocrop/gstvideocrop.c
index 2af4a76c..3fc63d25 100644
--- a/gst/videocrop/gstvideocrop.c
+++ b/gst/videocrop/gstvideocrop.c
@@ -521,8 +521,9 @@ gst_video_crop_chain (GstPad * pad, GstData * _data)
g_return_if_fail (GST_BUFFER_SIZE (buffer) >=
GST_VIDEO_I420_SIZE (video_crop->width, video_crop->height));
- outbuf = gst_pad_alloc_buffer (video_crop->srcpad, GST_BUFFER_OFFSET (buffer),
- GST_VIDEO_I420_SIZE (new_width, new_height));
+ outbuf =
+ gst_pad_alloc_buffer_and_set_caps (video_crop->srcpad,
+ GST_BUFFER_OFFSET (buffer), GST_VIDEO_I420_SIZE (new_width, new_height));
gst_buffer_stamp (outbuf, buffer);