mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 21:51:09 +00:00
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:
parent
279727d777
commit
44cee1789c
3 changed files with 3 additions and 3 deletions
|
@ -1739,5 +1739,5 @@ gst_base_parse_sink_setcaps (GstPad * pad, GstCaps * caps)
|
||||||
res = klass->set_sink_caps (parse, caps);
|
res = klass->set_sink_caps (parse, caps);
|
||||||
|
|
||||||
parse->negotiated = res;
|
parse->negotiated = res;
|
||||||
return gst_pad_set_caps (pad, caps);
|
return res && gst_pad_set_caps (pad, caps);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1739,5 +1739,5 @@ gst_base_parse_sink_setcaps (GstPad * pad, GstCaps * caps)
|
||||||
res = klass->set_sink_caps (parse, caps);
|
res = klass->set_sink_caps (parse, caps);
|
||||||
|
|
||||||
parse->negotiated = res;
|
parse->negotiated = res;
|
||||||
return gst_pad_set_caps (pad, caps);
|
return res && gst_pad_set_caps (pad, caps);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1969,5 +1969,5 @@ gst_base_parse_sink_setcaps (GstPad * pad, GstCaps * caps)
|
||||||
res = klass->set_sink_caps (parse, caps);
|
res = klass->set_sink_caps (parse, caps);
|
||||||
|
|
||||||
parse->negotiated = res;
|
parse->negotiated = res;
|
||||||
return gst_pad_set_caps (pad, caps);
|
return res && gst_pad_set_caps (pad, caps);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue