Commit 0a8f58e8 authored by Andrew Voznytsa's avatar Andrew Voznytsa

Fix GST_G_IO_MODULE_LOAD() use case

parent 6d3b3077
...@@ -3,6 +3,18 @@ ...@@ -3,6 +3,18 @@
#include "gst_ios_init.h" #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) #if defined(GST_IOS_GIO_MODULE_GNUTLS)
#include <gio/gio.h> #include <gio/gio.h>
GST_G_IO_MODULE_DECLARE(gnutls); GST_G_IO_MODULE_DECLARE(gnutls);
...@@ -45,6 +57,11 @@ void gst_ios_post_init(void) ...@@ -45,6 +57,11 @@ void gst_ios_post_init(void)
GstRegistry *reg; GstRegistry *reg;
/* Lower the ranks of filesrc and giosrc so iosavassetsrc is /* Lower the ranks of filesrc and giosrc so iosavassetsrc is
* tried first in gst_element_make_from_uri() for file:// */ * 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(); reg = gst_registry_get();
plugin = gst_registry_lookup_feature(reg, "filesrc"); plugin = gst_registry_lookup_feature(reg, "filesrc");
if (plugin) if (plugin)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment