diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2021-02-12 13:16:28 +0100 |
---|---|---|
committer | Stéphane Cerveau <scerveau@collabora.com> | 2021-03-29 12:45:22 +0200 |
commit | 80f8780e927703e03c43ad3ae781ca3b7e3b3b35 (patch) | |
tree | d041d146860311f8f462de29c0686037c63f117a /gst/rtp/gstrtpg723pay.c | |
parent | 8c4c4b5cff8f2eb8f959b5da540d56dc4895529a (diff) | |
download | gstreamer-plugins-good-80f8780e927703e03c43ad3ae781ca3b7e3b3b35.tar.gz |
rtp: 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>
Diffstat (limited to 'gst/rtp/gstrtpg723pay.c')
-rw-r--r-- | gst/rtp/gstrtpg723pay.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/gst/rtp/gstrtpg723pay.c b/gst/rtp/gstrtpg723pay.c index 18e294a3f..ebe7343d9 100644 --- a/gst/rtp/gstrtpg723pay.c +++ b/gst/rtp/gstrtpg723pay.c @@ -28,6 +28,7 @@ #include <gst/base/gstadapter.h> #include <gst/audio/audio.h> +#include "gstrtpelements.h" #include "gstrtpg723pay.h" #include "gstrtputils.h" @@ -68,6 +69,8 @@ static GstStateChangeReturn gst_rtp_g723_pay_change_state (GstElement * element, #define gst_rtp_g723_pay_parent_class parent_class G_DEFINE_TYPE (GstRTPG723Pay, gst_rtp_g723_pay, GST_TYPE_RTP_BASE_PAYLOAD); +GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpg723pay, "rtpg723pay", + GST_RANK_SECONDARY, GST_TYPE_RTP_G723_PAY, rtp_element_init (plugin)); static void gst_rtp_g723_pay_class_init (GstRTPG723PayClass * klass) @@ -298,11 +301,3 @@ gst_rtp_g723_pay_change_state (GstElement * element, GstStateChange transition) return ret; } - -/*Plugin init functions*/ -gboolean -gst_rtp_g723_pay_plugin_init (GstPlugin * plugin) -{ - return gst_element_register (plugin, "rtpg723pay", GST_RANK_SECONDARY, - gst_rtp_g723_pay_get_type ()); -} |