gst/gst.c: Search for plugins on win32 based on the location of the gstreamer DLL. Fixes #548786

Original commit message from CVS:
* gst/gst.c:
Search for plugins on win32 based on the location of the
gstreamer DLL.  Fixes #548786
This commit is contained in:
David Schleef 2008-12-05 20:32:03 +00:00
parent 09c012957e
commit e716f92dd7
2 changed files with 24 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2008-12-05 David Schleef <ds@schleef.org>
* gst/gst.c:
Search for plugins on win32 based on the location of the
gstreamer DLL. Fixes #548786
2008-12-04 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* configure.ac:

View file

@ -719,6 +719,24 @@ scan_and_update_registry (GstRegistry * default_registry,
/* add the main (installed) library path */
GST_DEBUG ("scanning main plugins %s", PLUGINDIR);
changed |= gst_registry_scan_path (default_registry, PLUGINDIR);
#ifdef G_PLATFORM_WIN32
{
char *base_dir;
char *dir;
base_dir = g_win32_get_package_installation_directory (NULL,
"libgstreamer-0.10-0.dll");
dir = g_build_filename (base_dir, "lib", "gstreamer-0.10", NULL);
GST_DEBUG ("scanning DLL dir %s", dir);
changed |= gst_registry_scan_path (default_registry, dir);
g_free (dir);
g_free (base_dir);
}
#endif
} else {
gchar **list;
gint i;