From 389302eb960ef15a673edc27ab0ba210bf2b88cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 18 Sep 2024 10:23:31 +0300 Subject: [PATCH] dynamictypefactory: Fix name of the class cast macro And deprecate the old name. Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3814 Part-of: --- girs/Gst-1.0.gir | 7 +++++++ subprojects/gstreamer/gst/gstdynamictypefactory.h | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/girs/Gst-1.0.gir b/girs/Gst-1.0.gir index 030d3e71d5..1aa13a5404 100644 --- a/girs/Gst-1.0.gir +++ b/girs/Gst-1.0.gir @@ -11060,6 +11060,13 @@ Used to generate `gst_device_provider_register_*(GstPlugin* plugin)`. + + + + + + + This macro can be used to register a dynamic type into a #GstPlugin. This method will be usually called in the plugin init function diff --git a/subprojects/gstreamer/gst/gstdynamictypefactory.h b/subprojects/gstreamer/gst/gstdynamictypefactory.h index 371dafb627..450184862a 100644 --- a/subprojects/gstreamer/gst/gstdynamictypefactory.h +++ b/subprojects/gstreamer/gst/gstdynamictypefactory.h @@ -89,8 +89,12 @@ G_BEGIN_DECLS #define GST_TYPE_DYNAMIC_TYPE_FACTORY (gst_dynamic_type_factory_get_type()) #define GST_DYNAMIC_TYPE_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DYNAMIC_TYPE_FACTORY,\ GstDynamicTypeFactory)) +#ifndef GST_DISABLE_DEPRECATED #define GST_DYNAMIC_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DYNAMIC_TYPE_FACTORY,\ GstDynamicTypeFactoryClass)) +#endif +#define GST_DYNAMIC_TYPE_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DYNAMIC_TYPE_FACTORY,\ + GstDynamicTypeFactoryClass)) #define GST_IS_DYNAMIC_TYPE_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DYNAMIC_TYPE_FACTORY)) #define GST_IS_DYNAMIC_TYPE_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DYNAMIC_TYPE_FACTORY)) #define GST_DYNAMIC_TYPE_FACTORY_CAST(obj) ((GstDynamicTypeFactory *)(obj))