summaryrefslogtreecommitdiffstats
path: root/gst/videocrop
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2005-12-05 13:04:22 +0000
committerAndy Wingo <wingo@pobox.com>2005-12-05 13:04:22 +0000
commit6bfd3797b791f3583b5cba3b8bcac72515a44118 (patch)
treee360c42282ac515956661b5037c80a9ba27563fb /gst/videocrop
parent7fbfd29bbe207f93ce17bf52ba1bc46c78cf25d2 (diff)
Update for alloc_buffer changes.
Original commit message from CVS: 2005-12-05 Andy Wingo <wingo@pobox.com> * ext/faac/gstfaac.c: (gst_faac_sink_event), (gst_faac_chain): * ext/faad/gstfaad.c: (gst_faad_chain): * ext/hermes/gsthermescolorspace.c: (gst_hermes_colorspace_chain): * ext/lcs/gstcolorspace.c: (gst_colorspace_chain): * ext/xine/xineinput.c: (gst_xine_input_get): * gst/colorspace/gstcolorspace.c: (gst_colorspace_chain): * gst/speed/gstspeed.c: (speed_chain): * gst/videocrop/gstvideocrop.c: (gst_video_crop_chain): Update for alloc_buffer changes.
Diffstat (limited to 'gst/videocrop')
-rw-r--r--gst/videocrop/gstvideocrop.c5
1 files changed, 3 insertions, 2 deletions
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);