summaryrefslogtreecommitdiffstats
path: root/gst/videocrop
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2002-09-10 09:31:40 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2002-09-10 09:31:40 +0000
commit2c5496eb74498afc6ff26e47773af43239a07abd (patch)
treed246cf3070c309a87325709fd05169b553b0024e /gst/videocrop
parentaf558bdc6f39c680689423d98d2b60e7fd7a4c81 (diff)
downloadgst-plugins-bad-2c5496eb74498afc6ff26e47773af43239a07abd.tar.gz
gst-plugins-bad-2c5496eb74498afc6ff26e47773af43239a07abd.tar.bz2
gst-plugins-bad-2c5496eb74498afc6ff26e47773af43239a07abd.zip
This updates all plugins to the new API for gst_pad_try_set_caps
Original commit message from CVS: This updates all plugins to the new API for gst_pad_try_set_caps
Diffstat (limited to 'gst/videocrop')
-rw-r--r--gst/videocrop/gstvideocrop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/videocrop/gstvideocrop.c b/gst/videocrop/gstvideocrop.c
index d1cc5af4..0554042e 100644
--- a/gst/videocrop/gstvideocrop.c
+++ b/gst/videocrop/gstvideocrop.c
@@ -341,14 +341,14 @@ gst_video_crop_chain (GstPad *pad, GstBuffer *buffer)
}
if (GST_PAD_CAPS (video_crop->srcpad) == NULL) {
- if (!gst_pad_try_set_caps (video_crop->srcpad,
+ if (gst_pad_try_set_caps (video_crop->srcpad,
GST_CAPS_NEW (
"video_crop_caps",
"video/raw",
"format", GST_PROPS_FOURCC (GST_STR_FOURCC ("I420")),
"width", GST_PROPS_INT (video_crop->crop_width),
"height", GST_PROPS_INT (video_crop->crop_height)
- )))
+ )) <= 0)
{
gst_element_error (GST_ELEMENT (video_crop), "could not negotiate pads");
return;