Skip to content
Permalink
Browse files
overlaycomposition: allow per feature registration
  • Loading branch information
dabrain34 authored and GStreamer Marge Bot committed Mar 16, 2021
1 parent 4e9520a commit a3875c7d024b44526e68a735f564b099288bbf57
@@ -84,6 +84,8 @@ static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
#define parent_class gst_overlay_composition_parent_class
G_DEFINE_TYPE (GstOverlayComposition, gst_overlay_composition,
GST_TYPE_ELEMENT);
GST_ELEMENT_REGISTER_DEFINE (overlaycomposition, "overlaycomposition",
GST_RANK_NONE, GST_TYPE_OVERLAY_COMPOSITION);

static GstFlowReturn gst_overlay_composition_sink_chain (GstPad * pad,
GstObject * parent, GstBuffer * buffer);
@@ -774,8 +776,7 @@ gst_overlay_composition_sink_chain (GstPad * pad, GstObject * parent,
static gboolean
plugin_init (GstPlugin * plugin)
{
return gst_element_register (plugin, "overlaycomposition", GST_RANK_NONE,
GST_TYPE_OVERLAY_COMPOSITION);
return GST_ELEMENT_REGISTER (overlaycomposition, plugin);
}

GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
@@ -43,6 +43,8 @@ struct _GstOverlayComposition {
gboolean attach_compo_to_buffer;
};

GST_ELEMENT_REGISTER_DECLARE (overlaycomposition);

G_END_DECLS

#endif /* __GST_OVERLAY_COMPOSITION_H__ */

0 comments on commit a3875c7

Please sign in to comment.