mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 03:46:11 +00:00
mpeg2dec: 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-ugly/-/merge_requests/79>
This commit is contained in:
parent
afa744b218
commit
1b9f99d19f
2 changed files with 4 additions and 5 deletions
|
@ -62,6 +62,8 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
|
|
||||||
#define gst_mpeg2dec_parent_class parent_class
|
#define gst_mpeg2dec_parent_class parent_class
|
||||||
G_DEFINE_TYPE (GstMpeg2dec, gst_mpeg2dec, GST_TYPE_VIDEO_DECODER);
|
G_DEFINE_TYPE (GstMpeg2dec, gst_mpeg2dec, GST_TYPE_VIDEO_DECODER);
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE (mpeg2dec, "mpeg2dec", GST_RANK_SECONDARY,
|
||||||
|
GST_TYPE_MPEG2DEC);
|
||||||
|
|
||||||
static void gst_mpeg2dec_finalize (GObject * object);
|
static void gst_mpeg2dec_finalize (GObject * object);
|
||||||
|
|
||||||
|
@ -1160,11 +1162,7 @@ done:
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
if (!gst_element_register (plugin, "mpeg2dec", GST_RANK_SECONDARY,
|
return GST_ELEMENT_REGISTER (mpeg2dec, plugin);
|
||||||
GST_TYPE_MPEG2DEC))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
|
|
|
@ -83,6 +83,7 @@ struct _GstMpeg2decClass {
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_mpeg2dec_get_type(void);
|
GType gst_mpeg2dec_get_type(void);
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (mpeg2dec);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue