GNOME Bugzilla – Bug 523798
[API] Some GstMiniObject enhancements
Last modified: 2008-04-03 15:17:26 UTC
Hi, the attached patch enhances GstMiniObject a bit. It adds GST_IS_PARAM_SPEC_MINI_OBJECT GST_PARAM_SPEC_MINI_OBJECT GST_TYPE_PARAM_MINI_OBJECT GstParamSpecMiniObject and gst_value_dup_mini_object() to the public API. This makes the API a bit more consistent with other param specs (and makes it possible to extend and check if a param spec is the one that was expected) and gst_value_dup_mini_object() is useful for set_property methods.
Created attachment 107781 [details] [review] mini-object.diff
Created attachment 107782 [details] [review] mini-object-docs.diff
Created attachment 107783 [details] [review] mini-object-gst-inspect.diff Print something more useful for GstMiniObject properties than "Unknown type"
Looks sensible (I haven't tested it here, though).
2008-03-22 Sebastian Dröge <slomo@circular-chaos.org> * 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".