From 0b497b1634b097988451b70aca5bf4190b81c01f Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Tue, 10 Sep 2002 09:31:40 +0000 Subject: 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 --- gst/monoscope/gstmonoscope.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gst/monoscope') diff --git a/gst/monoscope/gstmonoscope.c b/gst/monoscope/gstmonoscope.c index cad9c34f..a255e861 100644 --- a/gst/monoscope/gstmonoscope.c +++ b/gst/monoscope/gstmonoscope.c @@ -273,7 +273,7 @@ gst_monoscope_chain (GstPad *pad, GstBuffer *bufin) "height", GST_PROPS_INT (monoscope->height) ); - if (!gst_pad_try_set_caps (monoscope->srcpad, caps)) { + if (gst_pad_try_set_caps (monoscope->srcpad, caps) <= 0) { gst_element_error (GST_ELEMENT (monoscope), "could not set caps"); return; } -- cgit