mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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>
This commit is contained in:
parent
10d245f06c
commit
26d88d4ed9
1 changed files with 10 additions and 17 deletions
|
@ -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;
|
||||
|
||||
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);
|
||||
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 ret;
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||
|
|
Loading…
Reference in a new issue