diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2002-09-10 09:31:40 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2002-09-10 09:31:40 +0000 |
commit | 2c5496eb74498afc6ff26e47773af43239a07abd (patch) | |
tree | d246cf3070c309a87325709fd05169b553b0024e /gst/mixmatrix | |
parent | af558bdc6f39c680689423d98d2b60e7fd7a4c81 (diff) | |
download | gst-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/mixmatrix')
-rw-r--r-- | gst/mixmatrix/mixmatrix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/mixmatrix/mixmatrix.c b/gst/mixmatrix/mixmatrix.c index a0dd9a0b..935b203b 100644 --- a/gst/mixmatrix/mixmatrix.c +++ b/gst/mixmatrix/mixmatrix.c @@ -282,7 +282,7 @@ gst_mixmatrix_set_all_caps (GstMixMatrix *mix) for (i=0;i<mix->sinkpadalloc;i++) { if (mix->sinkpads[i]) { if (GST_PAD_CAPS(mix->sinkpads[i]) == NULL) - if (gst_pad_try_set_caps(mix->sinkpads[i],mix->caps) == FALSE) return FALSE; + if (gst_pad_try_set_caps(mix->sinkpads[i],mix->caps) <= 0) return FALSE; } } @@ -290,7 +290,7 @@ gst_mixmatrix_set_all_caps (GstMixMatrix *mix) for (i=0;i<mix->srcpadalloc;i++) { if (mix->srcpads[i]) { if (GST_PAD_CAPS(mix->srcpads[i]) == NULL) - if (gst_pad_try_set_caps(mix->srcpads[i],mix->caps) == FALSE) return FALSE; + if (gst_pad_try_set_caps(mix->srcpads[i],mix->caps) <= 0) return FALSE; } } @@ -311,7 +311,7 @@ gst_mixmatrix_connect (GstPad *pad, GstCaps *caps) for (i=0;i<mix->srcpadalloc;i++) { if (mix->srcpads[i]) { if (GST_PAD_CAPS(mix->srcpads[i]) == NULL) - if (gst_pad_try_set_caps(mix->srcpads[i], caps) == FALSE) + if (gst_pad_try_set_caps(mix->srcpads[i], caps) <= 0) return GST_PAD_CONNECT_REFUSED; } } |