diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/gsm/gstgsmdec.c | 2 | ||||
-rw-r--r-- | ext/gsm/gstgsmenc.c | 2 | ||||
-rw-r--r-- | ext/hermes/gstcolorspace.c | 4 | ||||
-rw-r--r-- | ext/jack/gstjack.c | 2 | ||||
-rw-r--r-- | ext/ladspa/gstladspa.c | 2 | ||||
-rw-r--r-- | ext/lcs/gstcolorspace.c | 4 | ||||
-rw-r--r-- | ext/tarkin/gsttarkindec.c | 4 |
7 files changed, 10 insertions, 10 deletions
diff --git a/ext/gsm/gstgsmdec.c b/ext/gsm/gstgsmdec.c index 35207618..aef69763 100644 --- a/ext/gsm/gstgsmdec.c +++ b/ext/gsm/gstgsmdec.c @@ -127,7 +127,7 @@ gst_gsmdec_sinkconnect (GstPad *pad, GstCaps *caps) "depth", GST_PROPS_INT (16), "rate", GST_PROPS_INT (rate), "channels", GST_PROPS_INT (1) - ))) + )) > 0) { return GST_PAD_CONNECT_OK; } diff --git a/ext/gsm/gstgsmenc.c b/ext/gsm/gstgsmenc.c index fb19b5ef..3ed506b8 100644 --- a/ext/gsm/gstgsmenc.c +++ b/ext/gsm/gstgsmenc.c @@ -128,7 +128,7 @@ gst_gsmenc_sinkconnect (GstPad *pad, GstCaps *caps) "gsm_gsm", "audio/x-gsm", "rate", GST_PROPS_INT (gsmenc->rate) - ))) + )) > 0) { return GST_PAD_CONNECT_OK; } diff --git a/ext/hermes/gstcolorspace.c b/ext/hermes/gstcolorspace.c index dcd05ca4..fe21fc56 100644 --- a/ext/hermes/gstcolorspace.c +++ b/ext/hermes/gstcolorspace.c @@ -344,7 +344,7 @@ gst_colorspace_srcconnect_func (GstPad *pad, GstCaps *caps, gboolean newcaps) peercaps = gst_caps_intersect (caps, ourcaps); if (peercaps) { /* see if the peer likes it too, it should as the caps say so.. */ - if (gst_pad_try_set_caps (space->srcpad, peercaps)) { + if (gst_pad_try_set_caps (space->srcpad, peercaps) > 0) { space->type = GST_COLORSPACE_NONE; space->disabled = FALSE; return GST_PAD_CONNECT_DONE; @@ -366,7 +366,7 @@ gst_colorspace_srcconnect_func (GstPad *pad, GstCaps *caps, gboolean newcaps) * is accepted by the peer */ while (peercaps) { if (colorspace_setup_converter (space, ourcaps, peercaps)) { - if (gst_pad_try_set_caps (space->srcpad, peercaps)) { + if (gst_pad_try_set_caps (space->srcpad, peercaps) > 0) { space->disabled = FALSE; return GST_PAD_CONNECT_DONE; } diff --git a/ext/jack/gstjack.c b/ext/jack/gstjack.c index 18d4ce43..179645f4 100644 --- a/ext/jack/gstjack.c +++ b/ext/jack/gstjack.c @@ -373,7 +373,7 @@ gst_jack_change_state (GstElement *element) caps = gst_pad_get_caps (pad->pad); gst_caps_set (caps, "rate", GST_PROPS_INT_TYPE, (gint) this->bin->rate, NULL); caps->fixed = TRUE; /* we know this to be true */ - if (!gst_pad_try_set_caps (pad->pad, caps)) + if (gst_pad_try_set_caps (pad->pad, caps) <= 0) return GST_STATE_FAILURE; l = g_list_next (l); } diff --git a/ext/ladspa/gstladspa.c b/ext/ladspa/gstladspa.c index 7970c5d2..c53c55cc 100644 --- a/ext/ladspa/gstladspa.c +++ b/ext/ladspa/gstladspa.c @@ -507,7 +507,7 @@ gst_ladspa_connect (GstPad *pad, GstCaps *caps) not sure if this is correct. */ if (GST_CAPS_IS_FIXED (caps)) { for (i=0;i<oclass->numsrcpads;i++) { - if (! gst_pad_try_set_caps (ladspa->srcpads[i], caps)) + if (gst_pad_try_set_caps (ladspa->srcpads[i], caps) <= 0) return GST_PAD_CONNECT_REFUSED; } } diff --git a/ext/lcs/gstcolorspace.c b/ext/lcs/gstcolorspace.c index 6dae2ab9..cee44d96 100644 --- a/ext/lcs/gstcolorspace.c +++ b/ext/lcs/gstcolorspace.c @@ -301,7 +301,7 @@ gst_colorspace_srcconnect_func (GstPad *pad, GstCaps *caps, gboolean newcaps) peercaps = gst_caps_intersect (caps, ourcaps); if (peercaps) { /* see if the peer likes it too, it should as the caps say so.. */ - if (gst_pad_try_set_caps (space->srcpad, peercaps)) { + if (gst_pad_try_set_caps (space->srcpad, peercaps) > 0) { space->type = GST_COLORSPACE_NONE; space->disabled = FALSE; return GST_PAD_CONNECT_DONE; @@ -323,7 +323,7 @@ gst_colorspace_srcconnect_func (GstPad *pad, GstCaps *caps, gboolean newcaps) * is accepted by the peer */ while (peercaps) { if (colorspace_setup_converter (space, ourcaps, peercaps)) { - if (gst_pad_try_set_caps (space->srcpad, peercaps)) { + if (gst_pad_try_set_caps (space->srcpad, peercaps) > 0) { space->disabled = FALSE; return GST_PAD_CONNECT_DONE; } diff --git a/ext/tarkin/gsttarkindec.c b/ext/tarkin/gsttarkindec.c index e0e538c5..28a7ee0a 100644 --- a/ext/tarkin/gsttarkindec.c +++ b/ext/tarkin/gsttarkindec.c @@ -206,7 +206,7 @@ gst_tarkindec_chain (GstPad *pad, GstBuffer *buf) layer = &tarkindec->tarkin_stream->layer->desc; if (!GST_PAD_CAPS (tarkindec->srcpad)) { - if (!gst_pad_try_set_caps (tarkindec->srcpad, + if (gst_pad_try_set_caps (tarkindec->srcpad, GST_CAPS_NEW ( "tarkin_raw", "video/raw", @@ -219,7 +219,7 @@ gst_tarkindec_chain (GstPad *pad, GstBuffer *buf) "blue_mask", GST_PROPS_INT (0xff), "width", GST_PROPS_INT (layer->width), "height", GST_PROPS_INT (layer->height) - ))) + )) <= 0) { gst_element_error (GST_ELEMENT (tarkindec), "could not output format"); gst_buffer_unref (buf); |