summaryrefslogtreecommitdiff
path: root/gst/videoframe_audiolevel
diff options
context:
space:
mode:
authorStéphane Cerveau <scerveau@collabora.com>2021-02-25 15:22:15 +0100
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-04-11 16:16:55 +0000
commit891be511057dbcdf1f38740e55cbd376c4b25894 (patch)
treeb077e8cd0b584ebe2a10950ef2398ab3f60b48b4 /gst/videoframe_audiolevel
parent7f60138ef68e2a1fef8ccd4ff3710dfccd243314 (diff)
downloadgstreamer-plugins-bad-891be511057dbcdf1f38740e55cbd376c4b25894.tar.gz
gst-plugins: 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/2110>
Diffstat (limited to 'gst/videoframe_audiolevel')
-rw-r--r--gst/videoframe_audiolevel/gstvideoframe-audiolevel.c5
-rw-r--r--gst/videoframe_audiolevel/gstvideoframe-audiolevel.h1
2 files changed, 4 insertions, 2 deletions
diff --git a/gst/videoframe_audiolevel/gstvideoframe-audiolevel.c b/gst/videoframe_audiolevel/gstvideoframe-audiolevel.c
index bd5b43db5..cb1390d2d 100644
--- a/gst/videoframe_audiolevel/gstvideoframe-audiolevel.c
+++ b/gst/videoframe_audiolevel/gstvideoframe-audiolevel.c
@@ -86,6 +86,8 @@ GST_STATIC_PAD_TEMPLATE ("vsrc",
#define parent_class gst_videoframe_audiolevel_parent_class
G_DEFINE_TYPE (GstVideoFrameAudioLevel, gst_videoframe_audiolevel,
GST_TYPE_ELEMENT);
+GST_ELEMENT_REGISTER_DEFINE (videoframe_audiolevel, "videoframe-audiolevel",
+ GST_RANK_NONE, GST_TYPE_VIDEOFRAME_AUDIOLEVEL);
static GstFlowReturn gst_videoframe_audiolevel_asink_chain (GstPad * pad,
GstObject * parent, GstBuffer * inbuf);
@@ -777,8 +779,7 @@ out:
static gboolean
gst_videoframe_audiolevel_plugin_init (GstPlugin * plugin)
{
- return gst_element_register (plugin, "videoframe-audiolevel",
- GST_RANK_NONE, GST_TYPE_VIDEOFRAME_AUDIOLEVEL);
+ return GST_ELEMENT_REGISTER (videoframe_audiolevel, plugin);
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
diff --git a/gst/videoframe_audiolevel/gstvideoframe-audiolevel.h b/gst/videoframe_audiolevel/gstvideoframe-audiolevel.h
index 83332e521..320132df0 100644
--- a/gst/videoframe_audiolevel/gstvideoframe-audiolevel.h
+++ b/gst/videoframe_audiolevel/gstvideoframe-audiolevel.h
@@ -68,6 +68,7 @@ struct _GstVideoFrameAudioLevelClass
};
GType gst_videoframe_audiolevel_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (videoframe_audiolevel);
G_END_DECLS
#endif /* __GST_VIDEOFRAME_AUDIOLEVEL_H__ */