summaryrefslogtreecommitdiffstats
path: root/gst/auparse/gstauparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/auparse/gstauparse.c')
-rw-r--r--gst/auparse/gstauparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/auparse/gstauparse.c b/gst/auparse/gstauparse.c
index 930461d9..e21b01a4 100644
--- a/gst/auparse/gstauparse.c
+++ b/gst/auparse/gstauparse.c
@@ -268,7 +268,7 @@ gst_auparse_chain (GstPad *pad, GstBuffer *buf)
"width", GST_PROPS_INT (depth),
"signed", GST_PROPS_BOOLEAN (sign));
- if (!gst_pad_try_set_caps (auparse->srcpad, tempcaps)) {
+ if (gst_pad_try_set_caps (auparse->srcpad, tempcaps) <= 0) {
gst_buffer_unref (buf);
gst_element_error (GST_ELEMENT (auparse), "could not set audio caps");
return;