2005-06-29 Thomas Vander Stichele <thomas at apestaart dot org>
+ * check/Makefile.am:
+ * gst/gst.c: (add_path_func), (init_pre):
+ * gst/gstregistry.c: (gst_registry_add_path):
+ add A GST_PLUGIN_PATH_ONLY env var; if it is set, it will
+ only scan the GST_PLUGIN_PATH locations, and not add
+ system locations
+
+2005-06-29 Thomas Vander Stichele <thomas at apestaart dot org>
+
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/gstbasesrc.sgml:
* gst/gstelement.c:
TESTS_ENVIRONMENT=\
- GST_PLUGIN_PATH=$(top_builddir)/gst:$(top_builddir)/check \
+ GST_PLUGIN_PATH_ONLY=yes \
+ GST_PLUGIN_PATH=$(top_builddir)/gst \
GST_REGISTRY=$(top_builddir)/check/test-registry.xml
plugindir = $(libdir)/gstreamer-@GST_MAJORMINOR@
{
GstRegistry *registry = GST_REGISTRY (user_data);
- GST_INFO ("Adding plugin path: \"%s\"", (gchar *) data);
gst_registry_add_path (registry, (gchar *) data);
}
#endif
PLUGINS_BUILDDIR "/gst/schedulers");
gst_registry_add_path (_global_registry, PLUGINS_BUILDDIR "/gst/indexers");
#else
- /* add the main (installed) library path */
- gst_registry_add_path (_global_registry, PLUGINS_DIR);
+ /* add the main (installed) library path if GST_PLUGIN_PATH_ONLY not set */
+ if (g_getenv ("GST_PLUGIN_PATH_ONLY") != NULL) {
+ gst_registry_add_path (_global_registry, PLUGINS_DIR);
+ }
#endif /* PLUGINS_USE_BUILDDIR */
if (g_getenv ("GST_REGISTRY")) {
#include "gstmarshal.h"
#include "gstfilter.h"
+#define GST_CAT_DEFAULT GST_CAT_GST_INIT
+
/* Element signals and args */
enum
{
g_return_if_fail (GST_IS_REGISTRY (registry));
g_return_if_fail (path != NULL);
+ if (strlen (path) == 0) {
+ GST_INFO ("Ignoring empty plugin path");
+ return;
+ }
+
if (g_list_find_custom (registry->paths, path, (GCompareFunc) strcmp)) {
g_warning ("path %s already added to registry", path);
return;
}
+ GST_INFO ("Adding plugin path: \"%s\"", path);
registry->paths = g_list_append (registry->paths, g_strdup (path));
}
TESTS_ENVIRONMENT=\
- GST_PLUGIN_PATH=$(top_builddir)/gst:$(top_builddir)/check \
+ GST_PLUGIN_PATH_ONLY=yes \
+ GST_PLUGIN_PATH=$(top_builddir)/gst \
GST_REGISTRY=$(top_builddir)/check/test-registry.xml
plugindir = $(libdir)/gstreamer-@GST_MAJORMINOR@