summaryrefslogtreecommitdiffstats
path: root/gst/law
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 /gst/law
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 'gst/law')
-rw-r--r--gst/law/alaw-decode.c2
-rw-r--r--gst/law/alaw-encode.c2
-rw-r--r--gst/law/mulaw-decode.c9
-rw-r--r--gst/law/mulaw-encode.c2
4 files changed, 5 insertions, 10 deletions
diff --git a/gst/law/alaw-decode.c b/gst/law/alaw-decode.c
index 1ce5edd4..9806f0ef 100644
--- a/gst/law/alaw-decode.c
+++ b/gst/law/alaw-decode.c
@@ -65,7 +65,7 @@ alawdec_negotiate_sink (GstPad *pad, GstCaps **caps, gint counter)
gst_caps_set(tempcaps,"width",GST_PROPS_INT(16));
gst_caps_set(tempcaps,"signed",GST_PROPS_BOOLEAN(TRUE));
- if (gst_pad_try_set_caps (alawdec->srcpad, tempcaps))
+ if (gst_pad_try_set_caps (alawdec->srcpad, tempcaps) > 0)
{
return GST_PAD_NEGOTIATE_AGREE;
}
diff --git a/gst/law/alaw-encode.c b/gst/law/alaw-encode.c
index 853a56f8..f7ebed18 100644
--- a/gst/law/alaw-encode.c
+++ b/gst/law/alaw-encode.c
@@ -66,7 +66,7 @@ alawenc_negotiate_sink (GstPad *pad, GstCaps **caps, gint counter)
gst_caps_set(tempcaps,"width",GST_PROPS_INT(8));
gst_caps_set(tempcaps,"signed",GST_PROPS_BOOLEAN(FALSE));
- if (gst_pad_try_set_caps (alawenc->srcpad, tempcaps))
+ if (gst_pad_try_set_caps (alawenc->srcpad, tempcaps) > 0)
{
return GST_PAD_NEGOTIATE_AGREE;
}
diff --git a/gst/law/mulaw-decode.c b/gst/law/mulaw-decode.c
index 2f95f056..3585a9cb 100644
--- a/gst/law/mulaw-decode.c
+++ b/gst/law/mulaw-decode.c
@@ -64,13 +64,8 @@ mulawdec_connect_sink (GstPad *pad, GstCaps *caps)
gst_caps_set(newcaps,"width",GST_PROPS_INT(16));
gst_caps_set(newcaps,"signed",GST_PROPS_BOOLEAN(TRUE));
- if (GST_CAPS_IS_FIXED (newcaps)) {
- if (gst_pad_try_set_caps (mulawdec->srcpad, newcaps))
- return GST_PAD_CONNECT_OK;
- else
- return GST_PAD_CONNECT_REFUSED;
- }
-
+ if (GST_CAPS_IS_FIXED (newcaps))
+ return gst_pad_try_set_caps (mulawdec->srcpad, newcaps);
return GST_PAD_CONNECT_DELAYED;
}
diff --git a/gst/law/mulaw-encode.c b/gst/law/mulaw-encode.c
index 5d9090f5..23648780 100644
--- a/gst/law/mulaw-encode.c
+++ b/gst/law/mulaw-encode.c
@@ -65,7 +65,7 @@ mulawenc_negotiate_sink (GstPad *pad, GstCaps **caps, gint counter)
gst_caps_set(tempcaps,"width",GST_PROPS_INT(8));
gst_caps_set(tempcaps,"signed",GST_PROPS_BOOLEAN(FALSE));
- if (gst_pad_try_set_caps (mulawenc->srcpad, tempcaps))
+ if (gst_pad_try_set_caps (mulawenc->srcpad, tempcaps) > 0)
{
return GST_PAD_NEGOTIATE_AGREE;
}