diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2021-02-25 15:22:15 +0100 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-04-11 16:16:55 +0000 |
commit | 891be511057dbcdf1f38740e55cbd376c4b25894 (patch) | |
tree | b077e8cd0b584ebe2a10950ef2398ab3f60b48b4 /gst/jp2kdecimator | |
parent | 7f60138ef68e2a1fef8ccd4ff3710dfccd243314 (diff) | |
download | gstreamer-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/jp2kdecimator')
-rw-r--r-- | gst/jp2kdecimator/gstjp2kdecimator.c | 13 | ||||
-rw-r--r-- | gst/jp2kdecimator/gstjp2kdecimator.h | 1 |
2 files changed, 6 insertions, 8 deletions
diff --git a/gst/jp2kdecimator/gstjp2kdecimator.c b/gst/jp2kdecimator/gstjp2kdecimator.c index 3688381b9..532864e7c 100644 --- a/gst/jp2kdecimator/gstjp2kdecimator.c +++ b/gst/jp2kdecimator/gstjp2kdecimator.c @@ -79,7 +79,10 @@ GST_DEBUG_CATEGORY (gst_jp2k_decimator_debug); #define GST_CAT_DEFAULT gst_jp2k_decimator_debug G_DEFINE_TYPE (GstJP2kDecimator, gst_jp2k_decimator, GST_TYPE_ELEMENT); - +GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (jp2kdecimator, "jp2kdecimator", + GST_RANK_NONE, GST_TYPE_JP2K_DECIMATOR, + GST_DEBUG_CATEGORY_INIT (gst_jp2k_decimator_debug, "jp2kdecimator", 0, + "JPEG2000 decimator")); static void gst_jp2k_decimator_class_init (GstJP2kDecimatorClass * klass) { @@ -258,13 +261,7 @@ gst_jp2k_decimator_sink_chain (GstPad * pad, GstObject * parent, static gboolean plugin_init (GstPlugin * plugin) { - GST_DEBUG_CATEGORY_INIT (gst_jp2k_decimator_debug, "jp2kdecimator", 0, - "JPEG2000 decimator"); - - gst_element_register (plugin, "jp2kdecimator", GST_RANK_NONE, - GST_TYPE_JP2K_DECIMATOR); - - return TRUE; + return GST_ELEMENT_REGISTER (jp2kdecimator, plugin); } GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, diff --git a/gst/jp2kdecimator/gstjp2kdecimator.h b/gst/jp2kdecimator/gstjp2kdecimator.h index f5f3458b7..7f5a1a9dc 100644 --- a/gst/jp2kdecimator/gstjp2kdecimator.h +++ b/gst/jp2kdecimator/gstjp2kdecimator.h @@ -51,6 +51,7 @@ struct _GstJP2kDecimatorClass }; GType gst_jp2k_decimator_get_type (void); +GST_ELEMENT_REGISTER_DECLARE (jp2kdecimator); G_END_DECLS |