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/amrparse | |
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/amrparse')
-rw-r--r-- | gst/amrparse/gstbaseparse.c | 2 |
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); } |