#ifndef GST_DISABLE_REGISTRY
GList *_priv_gst_plugin_paths = NULL; /* for delayed processing in init_post */
+extern gboolean _priv_gst_disable_registry;
extern gboolean _priv_gst_disable_registry_update;
#endif
GST_INFO ("Using library installed in %s", libdir);
g_free (libdir);
+#ifndef GST_DISABLE_REGISTRY
+ {
+ const gchar *disable_registry;
+ if ((disable_registry = g_getenv ("GST_REGISTRY_DISABLE"))) {
+ _priv_gst_disable_registry = (strcmp (disable_registry, "yes") == 0);
+ }
+ }
+#endif
+
/* Print some basic system details if possible (OS/architecture) */
#ifdef HAVE_SYS_UTSNAME_H
{
break;
case ARG_PLUGIN_PATH:
#ifndef GST_DISABLE_REGISTRY
- split_and_iterate (arg, G_SEARCHPATH_SEPARATOR_S, add_path_func, NULL);
+ if (!_priv_gst_disable_registry)
+ split_and_iterate (arg, G_SEARCHPATH_SEPARATOR_S, add_path_func, NULL);
#endif /* GST_DISABLE_REGISTRY */
break;
case ARG_PLUGIN_LOAD:
break;
case ARG_REGISTRY_UPDATE_DISABLE:
#ifndef GST_DISABLE_REGISTRY
- _priv_gst_disable_registry_update = TRUE;
+ if (!_priv_gst_disable_registry)
+ _priv_gst_disable_registry_update = TRUE;
#endif
break;
case ARG_REGISTRY_FORK_DISABLE: