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:
Stéphane Cerveau 2021-02-19 12:18:39 +01:00 committed by GStreamer Marge Bot
parent 3c46adf1db
commit 8f9610071d
3 changed files with 4 additions and 7 deletions

View file

@ -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);

View file

@ -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__ */

View file

@ -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,