Skip to content

Commit

Permalink
overlaycomposition: allow per feature registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane Cerveau authored and GStreamer Marge Bot committed Mar 16, 2021
1 parent 4e9520a commit a3875c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gst/overlaycomposition/gstoverlaycomposition.c
Expand Up @@ -84,6 +84,8 @@ static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
#define parent_class gst_overlay_composition_parent_class #define parent_class gst_overlay_composition_parent_class
G_DEFINE_TYPE (GstOverlayComposition, gst_overlay_composition, G_DEFINE_TYPE (GstOverlayComposition, gst_overlay_composition,
GST_TYPE_ELEMENT); 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, static GstFlowReturn gst_overlay_composition_sink_chain (GstPad * pad,
GstObject * parent, GstBuffer * buffer); GstObject * parent, GstBuffer * buffer);
Expand Down Expand Up @@ -774,8 +776,7 @@ gst_overlay_composition_sink_chain (GstPad * pad, GstObject * parent,
static gboolean static gboolean
plugin_init (GstPlugin * plugin) plugin_init (GstPlugin * plugin)
{ {
return gst_element_register (plugin, "overlaycomposition", GST_RANK_NONE, return GST_ELEMENT_REGISTER (overlaycomposition, plugin);
GST_TYPE_OVERLAY_COMPOSITION);
} }


GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
Expand Down
2 changes: 2 additions & 0 deletions gst/overlaycomposition/gstoverlaycomposition.h
Expand Up @@ -43,6 +43,8 @@ struct _GstOverlayComposition {
gboolean attach_compo_to_buffer; gboolean attach_compo_to_buffer;
}; };


GST_ELEMENT_REGISTER_DECLARE (overlaycomposition);

G_END_DECLS G_END_DECLS


#endif /* __GST_OVERLAY_COMPOSITION_H__ */ #endif /* __GST_OVERLAY_COMPOSITION_H__ */

0 comments on commit a3875c7

Please sign in to comment.