Search
SailfishOS Open Build Service
>
Projects
>
home:sledge
:
branches:nemo:devel:hw:ti:omap4:common
>
gstreamer
> 80_ia32-hack.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 80_ia32-hack.patch of Package gstreamer
Index: trunk/gst/gstregistry.c =================================================================== --- trunk.orig/gst/gstregistry.c +++ trunk/gst/gstregistry.c @@ -121,6 +121,10 @@ #include <stdio.h> #include <string.h> +#ifdef HAVE_SYS_UTSNAME_H +#include <sys/utsname.h> +#endif + /* For g_stat () */ #include <glib/gstdio.h> @@ -1503,6 +1507,9 @@ * path, and the plugins installed in the user's home directory */ plugin_path = g_getenv ("GST_PLUGIN_SYSTEM_PATH"); if (plugin_path == NULL) { +#if defined(__linux__) && defined (__i386__) + struct utsname uts; +#endif char *home_plugins, *backwards_compat_plugins; GST_DEBUG ("GST_PLUGIN_SYSTEM_PATH not set"); @@ -1522,6 +1529,16 @@ /* finally, look in the /usr/lib backwards-compatibility path. */ backwards_compat_plugins = g_build_filename ("/usr/lib", "gstreamer-" GST_MAJORMINOR, NULL); +#if defined(__linux__) && defined (__i386__) + uname(&uts); + if (!strcmp("x86_64", uts.machine) + && !access("/usr/lib32/gstreamer-0.10", R_OK|X_OK)) + { + g_free (backwards_compat_plugins); + backwards_compat_plugins = g_build_filename ("/usr/lib32", + "gstreamer-" GST_MAJORMINOR, NULL); + } +#endif GST_DEBUG ("scanning plugins %s", backwards_compat_plugins); changed |= gst_registry_scan_path_internal (&context, backwards_compat_plugins); g_free (backwards_compat_plugins);