summaryrefslogtreecommitdiff
path: root/ext/dtls/plugin.c
diff options
context:
space:
mode:
authorStéphane Cerveau <scerveau@collabora.com>2021-03-30 11:27:11 +0200
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-03-30 10:49:49 +0000
commit26d88d4ed9105fed786d279b1c0bd4140515245f (patch)
tree91fd3e3519e154d39604e57dec5207bbfc773cdc /ext/dtls/plugin.c
parent10d245f06c194c2d3b0f560d1609fcba804dce6c (diff)
downloadgstreamer-plugins-bad-26d88d4ed9105fed786d279b1c0bd4140515245f.tar.gz
dtls: hotfix: allow per feature registration
Use of GST_ELEMENT_REGISTER in plugin.c Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2123>
Diffstat (limited to 'ext/dtls/plugin.c')
-rw-r--r--ext/dtls/plugin.c27
1 files changed, 10 insertions, 17 deletions
diff --git a/ext/dtls/plugin.c b/ext/dtls/plugin.c
index 78a998060..679744965 100644
--- a/ext/dtls/plugin.c
+++ b/ext/dtls/plugin.c
@@ -27,29 +27,22 @@
#include "config.h"
#endif
-#include "gstdtlsdec.h"
-#include "gstdtlsenc.h"
-#include "gstdtlssrtpenc.h"
-#include "gstdtlssrtpdec.h"
-#include "gstdtlssrtpdemux.h"
-
#include <gst/gst.h>
+#include "gstdtlselements.h"
+
static gboolean
plugin_init (GstPlugin * plugin)
{
- gst_type_mark_as_plugin_api (GST_DTLS_TYPE_CONNECTION_STATE, 0);
+ gboolean ret = FALSE;
+
+ ret |= GST_ELEMENT_REGISTER (dtlsenc, plugin);
+ ret |= GST_ELEMENT_REGISTER (dtlsdec, plugin);
+ ret |= GST_ELEMENT_REGISTER (dtlssrtpdec, plugin);
+ ret |= GST_ELEMENT_REGISTER (dtlssrtpenc, plugin);
+ ret |= GST_ELEMENT_REGISTER (dtlssrtpdemux, plugin);
- return gst_element_register (plugin, "dtlsenc", GST_RANK_NONE,
- GST_TYPE_DTLS_ENC)
- && gst_element_register (plugin, "dtlsdec", GST_RANK_NONE,
- GST_TYPE_DTLS_DEC)
- && gst_element_register (plugin, "dtlssrtpdec", GST_RANK_NONE,
- GST_TYPE_DTLS_SRTP_DEC)
- && gst_element_register (plugin, "dtlssrtpenc", GST_RANK_NONE,
- GST_TYPE_DTLS_SRTP_ENC)
- && gst_element_register (plugin, "dtlssrtpdemux", GST_RANK_NONE,
- GST_TYPE_DTLS_SRTP_DEMUX);
+ return ret;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,