diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2021-02-11 11:15:10 +0100 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-03-16 17:59:00 +0000 |
commit | 4f6af9e57ab0e34e8e8fe8ccf5c417fbfa25eb70 (patch) | |
tree | 0d5fcb9e6a9942ac5422675e9759222843855cf1 /gst | |
parent | b4905798bb2ce82b9e213f8e7960cdab3544f678 (diff) | |
download | gstreamer-plugins-base-4f6af9e57ab0e34e8e8fe8ccf5c417fbfa25eb70.tar.gz |
volume: 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-base/-/merge_requests/1029>
Diffstat (limited to 'gst')
-rw-r--r-- | gst/volume/gstvolume.c | 4 | ||||
-rw-r--r-- | gst/volume/gstvolume.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/gst/volume/gstvolume.c b/gst/volume/gstvolume.c index fc1019155..a9ffded12 100644 --- a/gst/volume/gstvolume.c +++ b/gst/volume/gstvolume.c @@ -113,6 +113,7 @@ enum G_DEFINE_TYPE_WITH_CODE (GstVolume, gst_volume, GST_TYPE_AUDIO_FILTER, G_IMPLEMENT_INTERFACE (GST_TYPE_STREAM_VOLUME, NULL)); +GST_ELEMENT_REGISTER_DEFINE (volume, "volume", GST_RANK_NONE, GST_TYPE_VOLUME); static void volume_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); @@ -865,8 +866,7 @@ plugin_init (GstPlugin * plugin) { GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "volume", 0, "Volume gain"); - return gst_element_register (plugin, "volume", GST_RANK_NONE, - GST_TYPE_VOLUME); + return GST_ELEMENT_REGISTER (volume, plugin); } GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, diff --git a/gst/volume/gstvolume.h b/gst/volume/gstvolume.h index 27cd6c3e3..b8709dc3a 100644 --- a/gst/volume/gstvolume.h +++ b/gst/volume/gstvolume.h @@ -66,6 +66,8 @@ struct _GstVolume { guint volumes_count; }; +GST_ELEMENT_REGISTER_DECLARE (volume); + G_END_DECLS #endif /* __GST_VOLUME_H__ */ |