mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 20:59:44 +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
|
||||
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);
|
||||
|
||||
|
@ -1160,11 +1162,7 @@ done:
|
|||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
if (!gst_element_register (plugin, "mpeg2dec", GST_RANK_SECONDARY,
|
||||
GST_TYPE_MPEG2DEC))
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
return GST_ELEMENT_REGISTER (mpeg2dec, plugin);
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||
|
|
|
@ -83,6 +83,7 @@ struct _GstMpeg2decClass {
|
|||
};
|
||||
|
||||
GType gst_mpeg2dec_get_type(void);
|
||||
GST_ELEMENT_REGISTER_DECLARE (mpeg2dec);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Reference in a new issue