[Bug 740322] Proposal of smart-properties

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon May 25 08:13:01 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=740322

--- Comment #5 from Stefan Sauer (gstreamer, gtkdoc dev) <ensonic at sonicpulse.de> ---
> 
> > we have to know exact element name of them if we use childproxy.
> 
>  - This is surely something that could be fixed in GstChildProxy ?

Since GstObject does not impose any restrictions on names (like we have for
GObject properties) we cannot use globs here unfortunately.

gst_child_proxy_set(root, "elem*::prop", value, NULL);

Likewise we can't introduce some syntax to select elements by class or the
like.
Maybe we can do a FIXME-2.0 here. Maybe we can still do it, but WARN if someone
actually uses '*?' chars in the name (WARN in gst_object_set_name).

The glob should have some 'deep' match e.g.

gst_child_proxy_set(root, "**::prop", value, NULL);

as in set any 'prop' of elements below root.


Regarding setting properties on elements created by autoplugging. We have a
mechanism for that in parse_launch. When a child_property does not yet exist,
in will add signal handlers to look for new children. We could extract the code
from parse launch and move it to the child_proxy as a generic helper. It will
need some special care to recheck deep globs for new child elements.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list