attach global instead of local registry to GST_REGISTRY

Original commit message from CVS:
attach global instead of local registry to GST_REGISTRY
This commit is contained in:
Thomas Vander Stichele 2004-03-01 23:38:27 +00:00
parent 5fe16c54e7
commit 4e298c0641
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,13 @@
2004-03-02 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gst.c: (init_post):
change so that GST_REGISTRY now is where the global registry gets
saved, since that is where plugins now get attached to first, and
spilled over to the user registry. Note that in the case of using
GST_REGISTRY env var, we don't want to affect any real registries
beyond the one given by this var, and thus we don't set a user
registry to spill to. So make sure GST_REGISTRY is writable.
2004-03-01 David Schleef <ds@schleef.org>
* AUTHORS: Added some names. Add yourself if you're missing.

View file

@ -551,7 +551,7 @@ init_post (void)
if (!_gst_registry_fixed) {
/* don't override command-line options */
if (g_getenv ("GST_REGISTRY")) {
g_object_set (_user_registry, "location", g_getenv ("GST_REGISTRY"), NULL);
g_object_set (_global_registry, "location", g_getenv ("GST_REGISTRY"), NULL);
_gst_registry_fixed = TRUE;
}
}
@ -560,7 +560,7 @@ init_post (void)
gst_registry_pool_add (_global_registry, 100);
gst_registry_pool_add (_user_registry, 50);
} else {
gst_registry_pool_add (_user_registry, 50);
gst_registry_pool_add (_global_registry, 100);
}
if (_gst_registry_auto_load) {