summaryrefslogtreecommitdiffstats
path: root/ext/lcs/gstcolorspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/lcs/gstcolorspace.c')
-rw-r--r--ext/lcs/gstcolorspace.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/lcs/gstcolorspace.c b/ext/lcs/gstcolorspace.c
index ab1167a4..5e688b7b 100644
--- a/ext/lcs/gstcolorspace.c
+++ b/ext/lcs/gstcolorspace.c
@@ -411,7 +411,9 @@ gst_colorspace_chain (GstPad * pad, GstData * _data)
lcs_format_buffer_size (lcs_converter_get_dest_format (space->converter),
space->width, space->height, &size);
- outbuf = gst_pad_alloc_buffer (space->srcpad, GST_BUFFER_OFFSET_NONE, size);
+ outbuf =
+ gst_pad_alloc_buffer_and_set_caps (space->srcpad,
+ GST_BUFFER_OFFSET_NONE, size);
lcs_convert_auto (space->converter,
GST_BUFFER_DATA (buf),