mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
assrender: allow per feature registration
Split plugin into features including dynamic types which can be indiviually registered during a static build. More details here: https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/199 https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/661 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2038>
This commit is contained in:
parent
d9d30ff464
commit
6638dd2ff4
2 changed files with 10 additions and 7 deletions
|
@ -113,6 +113,13 @@ static GstStateChangeReturn gst_ass_render_change_state (GstElement * element,
|
||||||
|
|
||||||
#define gst_ass_render_parent_class parent_class
|
#define gst_ass_render_parent_class parent_class
|
||||||
G_DEFINE_TYPE (GstAssRender, gst_ass_render, GST_TYPE_ELEMENT);
|
G_DEFINE_TYPE (GstAssRender, gst_ass_render, GST_TYPE_ELEMENT);
|
||||||
|
#define _do_init \
|
||||||
|
GST_DEBUG_CATEGORY_INIT (gst_ass_render_debug, "assrender", \
|
||||||
|
0, "ASS/SSA subtitle renderer");\
|
||||||
|
GST_DEBUG_CATEGORY_INIT (gst_ass_render_lib_debug, "assrender_library",\
|
||||||
|
0, "ASS/SSA subtitle renderer library");
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (assrender, "assrender",
|
||||||
|
GST_RANK_PRIMARY, GST_TYPE_ASS_RENDER, _do_init);
|
||||||
|
|
||||||
static GstCaps *gst_ass_render_get_videosink_caps (GstPad * pad,
|
static GstCaps *gst_ass_render_get_videosink_caps (GstPad * pad,
|
||||||
GstAssRender * render, GstCaps * filter);
|
GstAssRender * render, GstCaps * filter);
|
||||||
|
@ -1873,13 +1880,7 @@ gst_ass_render_event_text (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
GST_DEBUG_CATEGORY_INIT (gst_ass_render_debug, "assrender",
|
return GST_ELEMENT_REGISTER (assrender, plugin);
|
||||||
0, "ASS/SSA subtitle renderer");
|
|
||||||
GST_DEBUG_CATEGORY_INIT (gst_ass_render_lib_debug, "assrender_library",
|
|
||||||
0, "ASS/SSA subtitle renderer library");
|
|
||||||
|
|
||||||
return gst_element_register (plugin, "assrender",
|
|
||||||
GST_RANK_PRIMARY, GST_TYPE_ASS_RENDER);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
|
|
|
@ -94,6 +94,8 @@ struct _GstAssRenderClass
|
||||||
|
|
||||||
GType gst_ass_render_get_type (void);
|
GType gst_ass_render_get_type (void);
|
||||||
|
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (assrender);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue