mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-24 23:16:30 +00:00
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.
This commit is contained in:
parent
54e2d7a54e
commit
1210758674
1 changed files with 3 additions and 2 deletions
|
@ -262,9 +262,10 @@ print_element_info (GstElementFactory *factory)
|
||||||
|
|
||||||
for (i=0;i<num_properties;i++) {
|
for (i=0;i<num_properties;i++) {
|
||||||
GParamSpec *param = property_specs[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);
|
printf(" %-40.40s: ",param->name);
|
||||||
switch (param->value_type) {
|
switch (param->value_type) {
|
||||||
|
|
Loading…
Reference in a new issue