Fixed a problem with -inspect where some args would not show up correctly
authorWim Taymans <wim.taymans@gmail.com>
Sun, 20 May 2001 21:24:59 +0000 (21:24 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Sun, 20 May 2001 21:24:59 +0000 (21:24 +0000)
Original commit message from CVS:
Fixed a problem with -inspect where some args would not show up correctly

tools/gstreamer-inspect.c

index a12629e..3c45597 100644 (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");