summaryrefslogtreecommitdiffstats
path: root/gst/law/alaw-encode.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/law/alaw-encode.c')
-rw-r--r--gst/law/alaw-encode.c2
1 files changed, 1 insertions, 1 deletions
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;
}