GNOME Bugzilla – Bug 763112
gstbuffer: fix GstParentBufferMeta GType name
Last modified: 2016-03-11 15:56:25 UTC
The alias define GST_TYPE_PARENT_BUFFER_META_API_TYPE is wrong and breaks the usage of gst_buffer_get_parent_buffer_meta()
Created attachment 323113 [details] [review] gstbuffer: fix GstParentBufferMeta GType name
Review of attachment 323113 [details] [review]: ::: gst/gstbuffer.h @@ -599,2 +599,2 @@ GType gst_parent_buffer_meta_api_get_type (void); -#define GST_TYPE_PARENT_BUFFER_META_API_TYPE (gst_parent_buffer_meta_api_get_type()) +#define GST_PARENT_BUFFER_META_API_TYPE (gst_parent_buffer_meta_api_get_type()) Both seems out of convention, GST_TYPE_PARENT_BUFFER_META_API would be by the book from a GObject point of view. Was this macro released into our API already ?
It seems that for metas GST_FOO_BAR_META_API_TYPE is the convention.
(quite wrong isn't it ;-P) What about the API break that this is, was that released in 1.6 ?
Comment on attachment 323113 [details] [review] gstbuffer: fix GstParentBufferMeta GType name As this was part of 1.6, we need to keep around the old one. Can you add the new one, deprecate the old one (including #ifndef GST_DISABLE_DEPRECATED)?
Created attachment 323250 [details] [review] gstbuffer: fix GstParentBufferMeta GType name The alias define GST_TYPE_PARENT_BUFFER_META_API_TYPE is wrong and breaks the usage of gst_buffer_get_parent_buffer_meta(). This patch fixes the GType alias and make another alias to keep the API compatibility guarded by GST_DISABLE_DEPRECATED. Also added a unit test.
Attachment 323250 [details] pushed as c1f2775 - gstbuffer: fix GstParentBufferMeta GType name