mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
childproxy: add a few more comments
This commit is contained in:
parent
6f6254d2b0
commit
92d5fb8660
1 changed files with 6 additions and 3 deletions
|
@ -172,11 +172,11 @@ gst_child_proxy_get_children_count (GstChildProxy * parent)
|
||||||
*
|
*
|
||||||
* Looks up which object and #GParamSpec would be effected by the given @name.
|
* Looks up which object and #GParamSpec would be effected by the given @name.
|
||||||
*
|
*
|
||||||
|
* MT safe.
|
||||||
|
*
|
||||||
* Returns: TRUE if @target and @pspec could be found. FALSE otherwise. In that
|
* Returns: TRUE if @target and @pspec could be found. FALSE otherwise. In that
|
||||||
* case the values for @pspec and @target are not modified. Unref @target after
|
* case the values for @pspec and @target are not modified. Unref @target after
|
||||||
* usage.
|
* usage. For plain GObjects @target is the same as @object.
|
||||||
*
|
|
||||||
* MT safe.
|
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
gst_child_proxy_lookup (GObject * object, const gchar * name,
|
gst_child_proxy_lookup (GObject * object, const gchar * name,
|
||||||
|
@ -191,6 +191,7 @@ gst_child_proxy_lookup (GObject * object, const gchar * name,
|
||||||
g_object_ref (object);
|
g_object_ref (object);
|
||||||
|
|
||||||
current = names = g_strsplit (name, "::", -1);
|
current = names = g_strsplit (name, "::", -1);
|
||||||
|
// find the owner of the property
|
||||||
while (current[1]) {
|
while (current[1]) {
|
||||||
GObject *next;
|
GObject *next;
|
||||||
|
|
||||||
|
@ -210,6 +211,8 @@ gst_child_proxy_lookup (GObject * object, const gchar * name,
|
||||||
object = next;
|
object = next;
|
||||||
current++;
|
current++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// look for psec
|
||||||
if (current[1] == NULL) {
|
if (current[1] == NULL) {
|
||||||
GParamSpec *spec =
|
GParamSpec *spec =
|
||||||
g_object_class_find_property (G_OBJECT_GET_CLASS (object), current[0]);
|
g_object_class_find_property (G_OBJECT_GET_CLASS (object), current[0]);
|
||||||
|
|
Loading…
Reference in a new issue