Skip to content

Commit

Permalink
compositor: 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 a71bf2e commit 0ae61fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gst/compositor/compositor.c
Expand Up @@ -610,6 +610,8 @@ gst_compositor_set_property (GObject * object,
G_DEFINE_TYPE_WITH_CODE (GstCompositor, gst_compositor,
GST_TYPE_VIDEO_AGGREGATOR, G_IMPLEMENT_INTERFACE (GST_TYPE_CHILD_PROXY,
gst_compositor_child_proxy_init));
GST_ELEMENT_REGISTER_DEFINE (compositor, "compositor", GST_RANK_PRIMARY + 1,
GST_TYPE_COMPOSITOR);

static gboolean
set_functions (GstCompositor * self, const GstVideoInfo * info)
Expand Down Expand Up @@ -1497,8 +1499,7 @@ plugin_init (GstPlugin * plugin)

gst_compositor_init_blend ();

return gst_element_register (plugin, "compositor", GST_RANK_PRIMARY + 1,
GST_TYPE_COMPOSITOR);
return GST_ELEMENT_REGISTER (compositor, plugin);
}

GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
Expand Down
2 changes: 2 additions & 0 deletions gst/compositor/compositor.h
Expand Up @@ -149,5 +149,7 @@ struct _GstCompositorPad
GstCompositorOperator op;
};

GST_ELEMENT_REGISTER_DECLARE (compositor);

G_END_DECLS
#endif /* __GST_COMPOSITOR_H__ */

0 comments on commit 0ae61fd

Please sign in to comment.