diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-06-01 13:56:18 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-06-02 00:56:53 +0100 |
commit | 44cee1789ca00eb399ef4aa1fe4e5401dfa82262 (patch) | |
tree | 733b574149570378a61d3e75379a8a7236ac183d /gst | |
parent | 279727d777ad0aa4ae89230e7a71d9982dd48f4d (diff) | |
download | gst-plugins-bad-44cee1789ca00eb399ef4aa1fe4e5401dfa82262.tar.gz gst-plugins-bad-44cee1789ca00eb399ef4aa1fe4e5401dfa82262.tar.bz2 gst-plugins-bad-44cee1789ca00eb399ef4aa1fe4e5401dfa82262.zip |
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.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/aacparse/gstbaseparse.c | 2 | ||||
-rw-r--r-- | gst/amrparse/gstbaseparse.c | 2 | ||||
-rw-r--r-- | gst/flacparse/gstbaseparse.c | 2 |
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); } |