mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
monoscope: 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-good/-/merge_requests/876>
This commit is contained in:
parent
2ba958555f
commit
7bfcfd660f
2 changed files with 7 additions and 4 deletions
|
@ -75,6 +75,10 @@ static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
|
|
||||||
#define gst_monoscope_parent_class parent_class
|
#define gst_monoscope_parent_class parent_class
|
||||||
G_DEFINE_TYPE (GstMonoscope, gst_monoscope, GST_TYPE_ELEMENT);
|
G_DEFINE_TYPE (GstMonoscope, gst_monoscope, GST_TYPE_ELEMENT);
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (monoscope, "monoscope",
|
||||||
|
GST_RANK_NONE, GST_TYPE_MONOSCOPE,
|
||||||
|
GST_DEBUG_CATEGORY_INIT (monoscope_debug, "monoscope", 0,
|
||||||
|
"monoscope element"););
|
||||||
|
|
||||||
static void gst_monoscope_finalize (GObject * object);
|
static void gst_monoscope_finalize (GObject * object);
|
||||||
static GstFlowReturn gst_monoscope_chain (GstPad * pad, GstObject * parent,
|
static GstFlowReturn gst_monoscope_chain (GstPad * pad, GstObject * parent,
|
||||||
|
@ -583,11 +587,8 @@ gst_monoscope_change_state (GstElement * element, GstStateChange transition)
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
GST_DEBUG_CATEGORY_INIT (monoscope_debug, "monoscope", 0,
|
return GST_ELEMENT_REGISTER (monoscope, plugin);
|
||||||
"monoscope element");
|
|
||||||
|
|
||||||
return gst_element_register (plugin, "monoscope",
|
|
||||||
GST_RANK_NONE, GST_TYPE_MONOSCOPE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
|
|
|
@ -78,6 +78,8 @@ struct _GstMonoscopeClass
|
||||||
|
|
||||||
GType gst_monoscope_get_type (void);
|
GType gst_monoscope_get_type (void);
|
||||||
|
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (monoscope);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_MONOSCOPE__ */
|
#endif /* __GST_MONOSCOPE__ */
|
||||||
|
|
Loading…
Reference in a new issue