diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2008-03-22 14:51:17 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2008-03-22 14:51:17 +0000 |
commit | 7fe1bca96ac608c0b9b8f1b78d861714de7c7543 (patch) | |
tree | 0873346d8f0ddf42bc90c130ca8a06be8703a18f /tools | |
parent | 520791d270fc410df8fd034f5b01d60458bba177 (diff) |
API: Add GST_IS_PARAM_SPEC_MINI_OBJECT, GST_PARAM_SPEC_MINI_OBJECT
Original commit message from CVS:
* gst/gstminiobject.c: (gst_value_dup_mini_object),
(gst_param_spec_mini_object):
* gst/gstminiobject.h:
* win32/common/libgstreamer.def:
* docs/gst/gstreamer-sections.txt:
API: Add GST_IS_PARAM_SPEC_MINI_OBJECT, GST_PARAM_SPEC_MINI_OBJECT
GST_TYPE_PARAM_MINI_OBJECT and gst_value_dup_mini_object. Also move
GstParamSpecMiniObject into a public header for this.
This make GstMiniObject a bit more consistent with GObject and makes
it possible to extend the param specs.
gst_value_dup_mini_object is mainly useful for set_property methods.
Fixes bug #523798.
* tools/gst-inspect.c: (print_element_properties_info):
Print something useful for GstMiniObject properties and not just
"unknown type".
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gst-inspect.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index ec42c646d6..a5db596f56 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -559,6 +559,9 @@ print_element_properties_info (GstElement * element) gst_value_get_fraction_numerator (&value), gst_value_get_fraction_denominator (&value)); + } else if (GST_IS_PARAM_SPEC_MINI_OBJECT (param)) { + n_print ("%-23.23s MiniObject of type \"%s\"", "", + g_type_name (param->value_type)); } else { n_print ("%-23.23s Unknown type %ld \"%s\"", "", param->value_type, g_type_name (param->value_type)); |