Updated debian/patches to use GST_API_VERSION
diff --git a/debian/patches/79_multiarch-backwards-compat.patch b/debian/patches/79_multiarch-backwards-compat.patch
index f5f111c..9e9bfdb 100644
--- a/debian/patches/79_multiarch-backwards-compat.patch
+++ b/debian/patches/79_multiarch-backwards-compat.patch
@@ -18,7 +18,7 @@
+ /* finally, look in the /usr/lib backwards-compatibility path. */
+ backwards_compat_plugins = g_build_filename ("/usr/lib",
-+ "gstreamer-" GST_MAJORMINOR, NULL);
++ "gstreamer-" GST_API_VERSION, NULL);
+ GST_DEBUG ("scanning plugins %s", backwards_compat_plugins);
+ changed |= gst_registry_scan_path_internal (&context, backwards_compat_plugins);
+ g_free (backwards_compat_plugins);
diff --git a/debian/patches/80_ia32-hack.patch b/debian/patches/80_ia32-hack.patch
index 6c3dfcd..b28fd10 100644
--- a/debian/patches/80_ia32-hack.patch
+++ b/debian/patches/80_ia32-hack.patch
@@ -26,7 +26,7 @@
@@ -1527,6 +1534,16 @@
/* finally, look in the /usr/lib backwards-compatibility path. */
backwards_compat_plugins = g_build_filename ("/usr/lib",
- "gstreamer-" GST_MAJORMINOR, NULL);
+ "gstreamer-" GST_API_VERSION, NULL);
+#if defined(__linux__) && defined (__i386__)
+ uname(&uts);
+ if (!strcmp("x86_64", uts.machine)
@@ -34,7 +34,7 @@
+ {
+ g_free (backwards_compat_plugins);
+ backwards_compat_plugins = g_build_filename ("/usr/lib32",
-+ "gstreamer-" GST_MAJORMINOR, NULL);
++ "gstreamer-" GST_API_VERSION, NULL);
+ }
+#endif
GST_DEBUG ("scanning plugins %s", backwards_compat_plugins);