From 0a8f58e84204e7352a1ddb73394f944b1edb0d67 Mon Sep 17 00:00:00 2001 From: Andrew Voznytsa Date: Fri, 7 Feb 2020 21:27:25 +0200 Subject: [PATCH] Fix GST_G_IO_MODULE_LOAD() use case --- src/VideoStreaming/iOS/gst_ios_init.m | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/VideoStreaming/iOS/gst_ios_init.m b/src/VideoStreaming/iOS/gst_ios_init.m index 1b361c01a..6158e1bca 100644 --- a/src/VideoStreaming/iOS/gst_ios_init.m +++ b/src/VideoStreaming/iOS/gst_ios_init.m @@ -3,6 +3,18 @@ #include "gst_ios_init.h" +G_BEGIN_DECLS + +#define GST_G_IO_MODULE_DECLARE(name) \ + extern void G_PASTE(g_io_module_, G_PASTE(name, _load_static)) (void) + +#define GST_G_IO_MODULE_LOAD(name) \ + G_PASTE(g_io_module_, G_PASTE(name, _load_static)) () + +G_END_DECLS + +#define GST_IOS_GIO_MODULE_GNUTLS + #if defined(GST_IOS_GIO_MODULE_GNUTLS) #include GST_G_IO_MODULE_DECLARE(gnutls); @@ -45,6 +57,11 @@ void gst_ios_post_init(void) GstRegistry *reg; /* Lower the ranks of filesrc and giosrc so iosavassetsrc is * tried first in gst_element_make_from_uri() for file:// */ + +#if defined(GST_IOS_GIO_MODULE_GNUTLS) + GST_G_IO_MODULE_LOAD(gnutls); +#endif + reg = gst_registry_get(); plugin = gst_registry_lookup_feature(reg, "filesrc"); if (plugin) -- 2.22.0