diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2001-06-17 02:39:41 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2001-06-17 02:39:41 +0000 |
commit | 12107586744ffe6a633ff9939afff21c4f6f0bec (patch) | |
tree | eaaab25d09d96ccf66283fe515cddfbaa00d32dd | |
parent | 54e2d7a54e1e5f6339af801970001d421101647d (diff) |
Figured out how to get a property from an object.
Original commit message from CVS:
Figured out how to get a property from an object.
-rw-r--r-- | tools/gstreamer-inspect.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/gstreamer-inspect.c b/tools/gstreamer-inspect.c index aedc88ef0..4249b324f 100644 --- a/tools/gstreamer-inspect.c +++ b/tools/gstreamer-inspect.c @@ -262,9 +262,10 @@ print_element_info (GstElementFactory *factory) for (i=0;i<num_properties;i++) { GParamSpec *param = property_specs[i]; - GValue value; + GValue value = { 0, }; - g_object_get (G_OBJECT (element), param->name, &value, NULL); + g_value_init (&value, param->value_type); + g_object_get_property (G_OBJECT (element), param->name, &value); printf(" %-40.40s: ",param->name); switch (param->value_type) { |