[0.11] gstreamer: object: register all properties in one go

Stefan Kost ensonic at kemper.freedesktop.org
Mon Jan 23 02:05:13 PST 2012


Module: gstreamer
Branch: 0.11
Commit: 4453c2cebed6b986b181feab37d2fba331be127d
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=4453c2cebed6b986b181feab37d2fba331be127d

Author: Stefan Sauer <ensonic at users.sf.net>
Date:   Mon Jan 23 11:03:09 2012 +0100

object: register all properties in one go

---

 gst/gstobject.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/gst/gstobject.c b/gst/gstobject.c
index fd56e31..7863256 100644
--- a/gst/gstobject.c
+++ b/gst/gstobject.c
@@ -213,14 +213,12 @@ gst_object_class_init (GstObjectClass * klass)
   properties[PROP_NAME] =
       g_param_spec_string ("name", "Name", "The name of the object", NULL,
       G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS);
-  g_object_class_install_property (gobject_class, PROP_NAME,
-      properties[PROP_NAME]);
 
   properties[PROP_PARENT] =
       g_param_spec_object ("parent", "Parent", "The parent of the object",
       GST_TYPE_OBJECT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
-  g_object_class_install_property (gobject_class, PROP_PARENT,
-      properties[PROP_PARENT]);
+
+  g_object_class_install_properties (gobject_class, PROP_LAST, properties);
 
   /**
    * GstObject::deep-notify:



More information about the gstreamer-commits mailing list