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 279727d777
commit 44cee1789c
3 changed files with 3 additions and 3 deletions

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

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

View file

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