diff options
author | Stefan Sauer <ensonic@users.sf.net> | 2012-06-12 11:07:13 +0200 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2012-06-12 11:07:13 +0200 |
commit | 11c8ffb6fbd20081c49708cb41e0ec6e2ed09c27 (patch) | |
tree | 97cf804a906ab14fb35925232303ddbef1926b4c | |
parent | b3132da8c8ef292c2ca5792124727564316a8bab (diff) |
childproxy: add a few more comments
-rw-r--r-- | gst/gstchildproxy.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gst/gstchildproxy.c b/gst/gstchildproxy.c index dfaae529c..cceabaa6f 100644 --- a/gst/gstchildproxy.c +++ b/gst/gstchildproxy.c @@ -164,11 +164,11 @@ gst_child_proxy_get_children_count (GstChildProxy * parent) * * 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 * case the values for @pspec and @target are not modified. Unref @target after - * usage. - * - * MT safe. + * usage. For plain GObjects @target is the same as @object. */ gboolean gst_child_proxy_lookup (GstObject * object, const gchar * name, @@ -183,6 +183,7 @@ gst_child_proxy_lookup (GstObject * object, const gchar * name, gst_object_ref (object); current = names = g_strsplit (name, "::", -1); + // find the owner of the property while (current[1]) { GstObject *next; @@ -202,6 +203,8 @@ gst_child_proxy_lookup (GstObject * object, const gchar * name, object = next; current++; } + + // look for psec if (current[1] == NULL) { GParamSpec *spec = g_object_class_find_property (G_OBJECT_GET_CLASS (object), current[0]); |