summaryrefslogtreecommitdiff
path: root/gst/rtp/gstrtpmp2tdepay.c
diff options
context:
space:
mode:
authorStéphane Cerveau <scerveau@collabora.com>2021-02-12 13:16:28 +0100
committerStéphane Cerveau <scerveau@collabora.com>2021-03-29 12:45:22 +0200
commit80f8780e927703e03c43ad3ae781ca3b7e3b3b35 (patch)
treed041d146860311f8f462de29c0686037c63f117a /gst/rtp/gstrtpmp2tdepay.c
parent8c4c4b5cff8f2eb8f959b5da540d56dc4895529a (diff)
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/gstrtpmp2tdepay.c')
-rw-r--r--gst/rtp/gstrtpmp2tdepay.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gst/rtp/gstrtpmp2tdepay.c b/gst/rtp/gstrtpmp2tdepay.c
index f8e0d0c7b..7acf3f819 100644
--- a/gst/rtp/gstrtpmp2tdepay.c
+++ b/gst/rtp/gstrtpmp2tdepay.c
@@ -24,6 +24,7 @@
#include <gst/rtp/gstrtpbuffer.h>
#include <string.h>
+#include "gstrtpelements.h"
#include "gstrtpmp2tdepay.h"
#include "gstrtputils.h"
@@ -71,6 +72,8 @@ static GstStaticPadTemplate gst_rtp_mp2t_depay_sink_template =
G_DEFINE_TYPE (GstRtpMP2TDepay, gst_rtp_mp2t_depay,
GST_TYPE_RTP_BASE_DEPAYLOAD);
+GST_ELEMENT_REGISTER_DEFINE_WITH_CODE (rtpmp2tdepay, "rtpmp2tdepay",
+ GST_RANK_SECONDARY, GST_TYPE_RTP_MP2T_DEPAY, rtp_element_init (plugin));
static gboolean gst_rtp_mp2t_depay_setcaps (GstRTPBaseDepayload * depayload,
GstCaps * caps);
@@ -234,10 +237,3 @@ gst_rtp_mp2t_depay_get_property (GObject * object, guint prop_id,
break;
}
}
-
-gboolean
-gst_rtp_mp2t_depay_plugin_init (GstPlugin * plugin)
-{
- return gst_element_register (plugin, "rtpmp2tdepay",
- GST_RANK_SECONDARY, GST_TYPE_RTP_MP2T_DEPAY);
-}