mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
parse: Don't do delayed property setting for top-level properties.
If a property is supplied to gst-launch-1.0 to set on a property that implements GstChildProxy, it would always accept any property name and try to set it later. This means that (for example) decodebin will accept and not complain about property names that can never exist like: gst-launch-1.0 videotestsrc ! decodebin NON-EXISTING_PROPERTY=adsfdasf ! fakesink Instead, only try to do deferred property setting for property names that contain the :: separator that indicates it's a setting on a child that might appear later. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/832>
This commit is contained in:
parent
5230cab38d
commit
7f29361488
1 changed files with 1 additions and 1 deletions
|
@ -398,7 +398,7 @@ static void gst_parse_element_set (gchar *value, GstElement *element, graph_t *g
|
||||||
}
|
}
|
||||||
gst_parse_unescape (pos);
|
gst_parse_unescape (pos);
|
||||||
|
|
||||||
if (GST_IS_CHILD_PROXY (element)) {
|
if (GST_IS_CHILD_PROXY (element) && strstr (value, "::") != NULL) {
|
||||||
if (!gst_child_proxy_lookup (GST_CHILD_PROXY (element), value, &target, &pspec)) {
|
if (!gst_child_proxy_lookup (GST_CHILD_PROXY (element), value, &target, &pspec)) {
|
||||||
/* do a delayed set */
|
/* do a delayed set */
|
||||||
gst_parse_add_delayed_set (element, value, pos);
|
gst_parse_add_delayed_set (element, value, pos);
|
||||||
|
|
Loading…
Reference in a new issue