summaryrefslogtreecommitdiffstats
path: root/sys/oss
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
commit0b497b1634b097988451b70aca5bf4190b81c01f (patch)
tree26ce2f5d73e89d98f284f097727221f777ab4117 /sys/oss
parentdc3b48f77c977d055efa550f01d691d2c4ec110f (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 'sys/oss')
-rw-r--r--sys/oss/gstosssrc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/oss/gstosssrc.c b/sys/oss/gstosssrc.c
index bf66ec7e..249609cd 100644
--- a/sys/oss/gstosssrc.c
+++ b/sys/oss/gstosssrc.c
@@ -205,7 +205,7 @@ gst_osssrc_get (GstPad *pad)
}
if (!GST_PAD_CAPS (pad)) {
/* set caps on src pad */
- if (!gst_pad_try_set_caps (src->srcpad,
+ if (gst_pad_try_set_caps (src->srcpad,
GST_CAPS_NEW (
"oss_src",
"audio/raw",
@@ -217,7 +217,7 @@ gst_osssrc_get (GstPad *pad)
"depth", GST_PROPS_INT (src->format),
"rate", GST_PROPS_INT (src->frequency),
"channels", GST_PROPS_INT (src->channels)
- )))
+ )) <= 0)
{
gst_element_error (GST_ELEMENT (src), "could not set caps");
return NULL;