Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2258>
#define _do_init \
kate_element_init (plugin); \
GST_DEBUG_CATEGORY_INIT (gst_katedec_debug, "katedec", 0, "Kate decoder");
-GST_ELEMENT_REGISTER_DEFINE (katedec, "katedec", GST_RANK_PRIMARY,
- GST_TYPE_KATE_DEC);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (katedec, "katedec", GST_RANK_PRIMARY,
+ GST_TYPE_KATE_DEC, _do_init);
static void gst_kate_dec_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
#define _do_init \
kate_element_init (plugin); \
GST_DEBUG_CATEGORY_INIT (gst_kateenc_debug, "kateenc", 0, "Kate encoder");
-GST_ELEMENT_REGISTER_DEFINE (kateenc, "kateenc", GST_RANK_NONE,
- GST_TYPE_KATE_ENC);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (kateenc, "kateenc", GST_RANK_NONE,
+ GST_TYPE_KATE_ENC, _do_init);
/* initialize the plugin's class */
static void
#define _do_init \
kate_element_init (plugin); \
GST_DEBUG_CATEGORY_INIT (gst_kateparse_debug, "kateparse", 0, "Kate parser");
-GST_ELEMENT_REGISTER_DEFINE (kateparse, "kateparse", GST_RANK_NONE,
- GST_TYPE_KATE_PARSE);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (kateparse, "kateparse", GST_RANK_NONE,
+ GST_TYPE_KATE_PARSE, _do_init);
static GstFlowReturn gst_kate_parse_chain (GstPad * pad, GstObject * parent,
GstBuffer * buffer);
#define _do_init \
kate_element_init (plugin); \
GST_DEBUG_CATEGORY_INIT (gst_katetag_debug, "katetag", 0, "Kate tagger");
-GST_ELEMENT_REGISTER_DEFINE (katetag, "katetag", GST_RANK_NONE,
- GST_TYPE_KATE_TAG);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (katetag, "katetag", GST_RANK_NONE,
+ GST_TYPE_KATE_TAG, _do_init);
static void
gst_kate_tag_class_init (GstKateTagClass * klass)
kate_element_init (plugin); \
GST_DEBUG_CATEGORY_INIT (gst_katetiger_debug, "tiger", 0, \
"Kate Tiger renderer");
-GST_ELEMENT_REGISTER_DEFINE (tiger, "tiger", GST_RANK_NONE,
- GST_TYPE_KATE_TIGER);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (tiger, "tiger", GST_RANK_NONE,
+ GST_TYPE_KATE_TIGER, _do_init);
static GType
gst_kate_tiger_font_effect_get_type (void)