summaryrefslogtreecommitdiffstats
path: root/gst/chart
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/chart
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/chart')
-rw-r--r--gst/chart/gstchart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/chart/gstchart.c b/gst/chart/gstchart.c
index e1c106ae..e24521a0 100644
--- a/gst/chart/gstchart.c
+++ b/gst/chart/gstchart.c
@@ -350,7 +350,7 @@ gst_chart_chain (GstPad *pad, GstBuffer *bufin)
/* Check if we need to renegotiate size. */
if (chart->first_buffer) {
GST_DEBUG (0, "making new pad");
- if (!gst_pad_try_set_caps (chart->srcpad,
+ if (gst_pad_try_set_caps (chart->srcpad,
GST_CAPS_NEW (
"chartsrc",
"video/raw",
@@ -363,7 +363,7 @@ gst_chart_chain (GstPad *pad, GstBuffer *bufin)
"blue_mask", GST_PROPS_INT (0x001f),
"width", GST_PROPS_INT (chart->width),
"height", GST_PROPS_INT (chart->height)
- )))
+ )) <= 0)
{
gst_element_error (GST_ELEMENT (chart), "could not set caps");
return;