summaryrefslogtreecommitdiffstats
path: root/gst/flacparse/gstbaseparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/flacparse/gstbaseparse.c')
-rw-r--r--gst/flacparse/gstbaseparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/flacparse/gstbaseparse.c b/gst/flacparse/gstbaseparse.c
index 4d28d65f..85fb8d71 100644
--- a/gst/flacparse/gstbaseparse.c
+++ b/gst/flacparse/gstbaseparse.c
@@ -1969,5 +1969,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);
}