summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
Diffstat (limited to 'gst')
-rw-r--r--gst/aacparse/gstbaseparse.c2
-rw-r--r--gst/amrparse/gstbaseparse.c2
-rw-r--r--gst/flacparse/gstbaseparse.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/gst/aacparse/gstbaseparse.c b/gst/aacparse/gstbaseparse.c
index 5a256a0a..026b1341 100644
--- a/gst/aacparse/gstbaseparse.c
+++ b/gst/aacparse/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);
}
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);
}
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);
}