summaryrefslogtreecommitdiffstats
path: root/gst/amrparse
diff options
context:
space:
mode:
Diffstat (limited to 'gst/amrparse')
-rw-r--r--gst/amrparse/gstbaseparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/amrparse/gstbaseparse.c b/gst/amrparse/gstbaseparse.c
index cd170636..ad963785 100644
--- a/gst/amrparse/gstbaseparse.c
+++ b/gst/amrparse/gstbaseparse.c
@@ -1739,5 +1739,5 @@ gst_base_parse_sink_setcaps (GstPad * pad, GstCaps * caps)
res = klass->set_sink_caps (parse, caps);
parse->negotiated = res;
- return gst_pad_set_caps (pad, caps);
+ return res && gst_pad_set_caps (pad, caps);
}