From 4b841173ed935267d0b04ee7d4e8b5fb0b7dc35d Mon Sep 17 00:00:00 2001 From: Nikhil Devshatwar Date: Wed, 15 May 2013 17:52:36 +0530 Subject: [PATCH] Multiarch backward comaptibility. --- gst/gstregistry.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gst/gstregistry.c b/gst/gstregistry.c index e6f6f19ec..79745353b 100644 --- a/gst/gstregistry.c +++ b/gst/gstregistry.c @@ -1554,7 +1554,7 @@ scan_and_update_registry (GstRegistry * default_registry, * path, and the plugins installed in the user's home directory */ plugin_path = g_getenv ("GST_PLUGIN_SYSTEM_PATH"); if (plugin_path == NULL) { - char *home_plugins; + char *home_plugins, *backwards_compat_plugins; GST_DEBUG ("GST_PLUGIN_SYSTEM_PATH not set"); @@ -1570,6 +1570,13 @@ scan_and_update_registry (GstRegistry * default_registry, GST_DEBUG ("scanning main plugins %s", PLUGINDIR); changed |= gst_registry_scan_path_internal (&context, PLUGINDIR); + /* finally, look in the /usr/lib backwards-compatibility path. */ + backwards_compat_plugins = g_build_filename ("/usr/lib", + "gstreamer-" GST_MAJORMINOR, NULL); + GST_DEBUG ("scanning plugins %s", backwards_compat_plugins); + changed |= gst_registry_scan_path_internal (&context, backwards_compat_plugins); + g_free (backwards_compat_plugins); + #ifdef G_OS_WIN32 { char *base_dir; -- 2.26.2