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.
This commit is contained in:
Tim-Philipp Müller 2009-06-01 13:56:18 +01:00
parent 09243a12bd
commit d49e8731c0

View file

@ -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);
}