Fixed a problem with -inspect where some args would not show up correctly

Original commit message from CVS:
Fixed a problem with -inspect where some args would not show up correctly
This commit is contained in:
Wim Taymans 2001-05-20 21:24:59 +00:00
parent 7fb020ffe6
commit 4212a8dfdc

View file

@ -252,7 +252,6 @@ print_element_info (GstElementFactory *factory)
printf("Element Arguments:\n");
args = gtk_object_query_args(GTK_OBJECT_TYPE(element), &flags, &num_args);
for (i=0;i<num_args;i++) {
gtk_object_getv(GTK_OBJECT(element), 1, &args[i]);
// FIXME should say whether it's read-only or not
@ -283,7 +282,7 @@ print_element_info (GstElementFactory *factory)
else if (args[i].type == GTK_TYPE_WIDGET)
printf("GtkWidget");
else
printf("unknown");
printf("unknown %d", args[i].type);
break;
}
printf("\n");