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 | 0b497b1634b097988451b70aca5bf4190b81c01f (patch) | |
tree | 26ce2f5d73e89d98f284f097727221f777ab4117 /ext | |
parent | dc3b48f77c977d055efa550f01d691d2c4ec110f (diff) |
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 'ext')
-rw-r--r-- | ext/dv/gstdvdec.c | 2 | ||||
-rw-r--r-- | ext/esd/esdmon.c | 4 | ||||
-rw-r--r-- | ext/ladspa/gstladspa.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/ext/dv/gstdvdec.c b/ext/dv/gstdvdec.c index 367cfe72..0ee89761 100644 --- a/ext/dv/gstdvdec.c +++ b/ext/dv/gstdvdec.c @@ -695,7 +695,7 @@ gst_dvdec_loop (GstElement *element) GstCaps *to_try = gst_caps_copy_1 (trylist); /* try each format */ - if (gst_pad_try_set_caps (dvdec->videosrcpad, to_try)) { + if (gst_pad_try_set_caps (dvdec->videosrcpad, to_try) > 0) { guint32 fourcc; /* it worked, try to find what it was again */ diff --git a/ext/esd/esdmon.c b/ext/esd/esdmon.c index 423e7f5d..ac9eaa1a 100644 --- a/ext/esd/esdmon.c +++ b/ext/esd/esdmon.c @@ -294,7 +294,7 @@ gst_esdmon_get (GstPad *pad) } if (!GST_PAD_CAPS (pad)) { /* set caps on src pad */ - if (!gst_pad_try_set_caps (esdmon->srcpad, + if (gst_pad_try_set_caps (esdmon->srcpad, GST_CAPS_NEW ( "oss_src", "audio/raw", @@ -306,7 +306,7 @@ gst_esdmon_get (GstPad *pad) "depth", GST_PROPS_INT (esdmon->depth), "rate", GST_PROPS_INT (esdmon->frequency), "channels", GST_PROPS_INT (esdmon->channels) - ))) + )) <= 0) { gst_element_error (GST_ELEMENT (esdmon), "could not set caps"); return NULL; 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; } } |