mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
smoothstreaming: 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
3c46adf1db
commit
8f9610071d
3 changed files with 4 additions and 7 deletions
|
@ -109,7 +109,8 @@ GST_STATIC_PAD_TEMPLATE ("audio_%02u",
|
||||||
|
|
||||||
#define gst_mss_demux_parent_class parent_class
|
#define gst_mss_demux_parent_class parent_class
|
||||||
G_DEFINE_TYPE (GstMssDemux, gst_mss_demux, GST_TYPE_ADAPTIVE_DEMUX);
|
G_DEFINE_TYPE (GstMssDemux, gst_mss_demux, GST_TYPE_ADAPTIVE_DEMUX);
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE (mssdemux, "mssdemux",
|
||||||
|
GST_RANK_PRIMARY, GST_TYPE_MSS_DEMUX);
|
||||||
static void gst_mss_demux_dispose (GObject * object);
|
static void gst_mss_demux_dispose (GObject * object);
|
||||||
static void gst_mss_demux_set_property (GObject * object, guint prop_id,
|
static void gst_mss_demux_set_property (GObject * object, guint prop_id,
|
||||||
const GValue * value, GParamSpec * pspec);
|
const GValue * value, GParamSpec * pspec);
|
||||||
|
|
|
@ -79,7 +79,7 @@ struct _GstMssDemuxClass {
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_mss_demux_get_type (void);
|
GType gst_mss_demux_get_type (void);
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (mssdemux);
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_MSSDEMUX_H__ */
|
#endif /* __GST_MSSDEMUX_H__ */
|
||||||
|
|
|
@ -31,11 +31,7 @@
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
if (!gst_element_register (plugin, "mssdemux",
|
return GST_ELEMENT_REGISTER (mssdemux, plugin);
|
||||||
GST_RANK_PRIMARY, GST_TYPE_MSS_DEMUX))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
|
|
Loading…
Reference in a new issue