From 44cee1789ca00eb399ef4aa1fe4e5401dfa82262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 1 Jun 2009 13:56:18 +0100 Subject: baseparse: propagate return value of GstBaseParse::set_sink_caps() gst_base_parse_sink_setcaps() presumably should fail if the subclass returns FALSE from its ::set_sink_caps() function. --- gst/aacparse/gstbaseparse.c | 2 +- gst/amrparse/gstbaseparse.c | 2 +- gst/flacparse/gstbaseparse.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'gst') 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); } -- cgit v1.2.1