gst/gst.c (init_post): remove hard-coded 0.9 location for registries/plugins with a MAJORMINOR one.

Original commit message from CVS:
2005-12-05  Andy Wingo  <wingo@pobox.com>

patch by: Thomas Vander Stichele  <thomas at apestaart dot org>

* gst/gst.c (init_post): remove hard-coded 0.9 location for
registries/plugins with a MAJORMINOR one.
(plugin_desc): Rename library from gstcoreleements to
staticelements. Fixes #323222.
This commit is contained in:
Thomas Vander Stichele 2005-12-05 09:53:54 +00:00 committed by Andy Wingo
parent 93f79f0c96
commit 9def80ce05
2 changed files with 13 additions and 4 deletions

View file

@ -1,3 +1,12 @@
2005-12-05 Andy Wingo <wingo@pobox.com>
patch by: Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gst.c (init_post): remove hard-coded 0.9 location for
registries/plugins with a MAJORMINOR one.
(plugin_desc): Rename library from gstcoreleements to
staticelements. Fixes #323222.
2005-12-05 Tim-Philipp Müller <tim at centricular dot net>
* libs/gst/base/gstcollectpads.c: (gst_collect_pads_base_init):

View file

@ -516,8 +516,8 @@ gst_register_core_elements (GstPlugin * plugin)
static GstPluginDesc plugin_desc = {
GST_VERSION_MAJOR,
GST_VERSION_MINOR,
"gstcoreelements",
"core elements of the GStreamer library",
"staticelements",
"core elements linked into the GStreamer library",
gst_register_core_elements,
VERSION,
GST_LICENSE,
@ -589,7 +589,7 @@ init_post (void)
registry_file = g_strdup (g_getenv ("GST_REGISTRY"));
if (registry_file == NULL) {
registry_file = g_build_filename (g_get_home_dir (),
".gstreamer-0.9", "registry.xml", NULL);
".gstreamer-" GST_MAJORMINOR, "registry.xml", NULL);
}
GST_DEBUG ("Reading registry cache");
gst_registry_xml_read_cache (default_registry, registry_file);
@ -623,7 +623,7 @@ init_post (void)
/* plugins in the user's home directory take precedence over
* system-installed ones */
home_plugins = g_build_filename (g_get_home_dir (),
".gstreamer-0.9", "plugins", NULL);
".gstreamer-" GST_MAJORMINOR, "plugins", NULL);
gst_registry_scan_path (default_registry, home_plugins);
g_free (home_plugins);