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/rtmp2/gstrtmp2.c | |
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/rtmp2/gstrtmp2.c')
-rw-r--r-- | gst/rtmp2/gstrtmp2.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/gst/rtmp2/gstrtmp2.c b/gst/rtmp2/gstrtmp2.c index 1be1a3c5e..35650227a 100644 --- a/gst/rtmp2/gstrtmp2.c +++ b/gst/rtmp2/gstrtmp2.c @@ -23,24 +23,18 @@ #include "config.h" #endif -#include "gstrtmp2src.h" -#include "gstrtmp2sink.h" +#include "gstrtmp2elements.h" -#include "rtmp/rtmpclient.h" static gboolean plugin_init (GstPlugin * plugin) { - gst_element_register (plugin, "rtmp2src", GST_RANK_PRIMARY + 1, - GST_TYPE_RTMP2_SRC); - gst_element_register (plugin, "rtmp2sink", GST_RANK_PRIMARY + 1, - GST_TYPE_RTMP2_SINK); + gboolean ret = FALSE; - gst_type_mark_as_plugin_api (GST_TYPE_RTMP_SCHEME, 0); - gst_type_mark_as_plugin_api (GST_TYPE_RTMP_AUTHMOD, 0); - gst_type_mark_as_plugin_api (GST_TYPE_RTMP_STOP_COMMANDS, 0); + ret |= GST_ELEMENT_REGISTER (rtmp2src, plugin); + ret |= GST_ELEMENT_REGISTER (rtmp2sink, plugin); - return TRUE; + return ret; } GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, |