mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-24 15:06:38 +00:00
Pff, this doesn't seem to work...
Original commit message from CVS: Pff, this doesn't seem to work... Can someone try to get a property from a GObject?
This commit is contained in:
parent
66e0d59f7a
commit
54e2d7a54e
1 changed files with 2 additions and 2 deletions
|
@ -266,8 +266,8 @@ print_element_info (GstElementFactory *factory)
|
|||
|
||||
g_object_get (G_OBJECT (element), param->name, &value, NULL);
|
||||
|
||||
printf(" %-40.40s: %d",param->name, value.g_type);
|
||||
switch (value.g_type) {
|
||||
printf(" %-40.40s: ",param->name);
|
||||
switch (param->value_type) {
|
||||
case G_TYPE_STRING: printf("String (Default \"%s\")", g_value_get_string (&value));break;
|
||||
case G_TYPE_BOOLEAN: printf("Boolean (Default %s)", (g_value_get_boolean (&value)?"true":"false"));break;
|
||||
case G_TYPE_ULONG: printf("Unsigned Long (Default %lu)", g_value_get_ulong (&value));break;
|
||||
|
|
Loading…
Reference in a new issue