tools/gst-inspect.c: Handle properties of POINTER and BOXED type.
authorTim-Philipp Müller <tim@centricular.net>
Tue, 27 Dec 2005 18:04:58 +0000 (18:04 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 27 Dec 2005 18:04:58 +0000 (18:04 +0000)
Original commit message from CVS:
* tools/gst-inspect.c: (print_element_properties_info):
Handle properties of POINTER and BOXED type.

ChangeLog
tools/gst-inspect.c

index 62c582a..045c811 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2005-12-27  Tim-Philipp Müller  <tim at centricular dot net>
 
+       * tools/gst-inspect.c: (print_element_properties_info):
+         Handle properties of POINTER and BOXED type.
+
+2005-12-27  Tim-Philipp Müller  <tim at centricular dot net>
+
        * gst/gst.c: (init_post):
          Init tags stuff and some other things before loading
          any static plugins (there may be other static plugins
index 6c35ed9..9217937 100644 (file)
@@ -496,6 +496,16 @@ print_element_properties_info (GstElement * element)
         } else if (G_IS_PARAM_SPEC_OBJECT (param)) {
           n_print ("%-23.23s Object of type \"%s\"", "",
               g_type_name (param->value_type));
+        } else if (G_IS_PARAM_SPEC_BOXED (param)) {
+          n_print ("%-23.23s Boxed pointer of type \"%s\"", "",
+              g_type_name (param->value_type));
+        } else if (G_IS_PARAM_SPEC_POINTER (param)) {
+          if (param->value_type != G_TYPE_POINTER) {
+            n_print ("%-23.23s Pointer of type \"%s\".", "",
+                g_type_name (param->value_type));
+          } else {
+            n_print ("%-23.23s Pointer.", "");
+          }
         } else {
           n_print ("%-23.23s Unknown type %ld \"%s\"", "", param->value_type,
               g_type_name (param->value_type));