summaryrefslogtreecommitdiff
path: root/gst/audiomixmatrix
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/audiomixmatrix
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/audiomixmatrix')
-rw-r--r--gst/audiomixmatrix/gstaudiomixmatrix.c5
-rw-r--r--gst/audiomixmatrix/gstaudiomixmatrix.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/gst/audiomixmatrix/gstaudiomixmatrix.c b/gst/audiomixmatrix/gstaudiomixmatrix.c
index 77b5c92ed..0d1c9b30a 100644
--- a/gst/audiomixmatrix/gstaudiomixmatrix.c
+++ b/gst/audiomixmatrix/gstaudiomixmatrix.c
@@ -150,6 +150,8 @@ static GstStateChangeReturn gst_audio_mix_matrix_change_state (GstElement *
G_DEFINE_TYPE (GstAudioMixMatrix, gst_audio_mix_matrix,
GST_TYPE_BASE_TRANSFORM);
+GST_ELEMENT_REGISTER_DEFINE (audiomixmatrix, "audiomixmatrix", GST_RANK_NONE,
+ GST_TYPE_AUDIO_MIX_MATRIX);
static void
gst_audio_mix_matrix_class_init (GstAudioMixMatrixClass * klass)
@@ -743,8 +745,7 @@ beach:
static gboolean
plugin_init (GstPlugin * plugin)
{
- return gst_element_register (plugin, "audiomixmatrix", GST_RANK_NONE,
- GST_TYPE_AUDIO_MIX_MATRIX);
+ return GST_ELEMENT_REGISTER (audiomixmatrix, plugin);
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
diff --git a/gst/audiomixmatrix/gstaudiomixmatrix.h b/gst/audiomixmatrix/gstaudiomixmatrix.h
index 5321954b4..dcd345655 100644
--- a/gst/audiomixmatrix/gstaudiomixmatrix.h
+++ b/gst/audiomixmatrix/gstaudiomixmatrix.h
@@ -72,6 +72,8 @@ struct _GstAudioMixMatrixClass
GType gst_audio_mix_matrix_get_type (void);
+GST_ELEMENT_REGISTER_DECLARE (audiomixmatrix);
+
GType gst_audio_mix_matrix_mode_get_type (void);
G_END_DECLS