--- plugins/video/H.264/gpl/x264loader_unix.cxx-old	2010-07-25 16:14:18.170981132 +0200
+++ plugins/video/H.264/gpl/x264loader_unix.cxx	2010-07-25 15:58:54.161930358 +0200
@@ -53,10 +53,17 @@
     return false;
   }
 
-  if (!GetFunction("x264_encoder_open", (Function &)Xx264_encoder_open)) {
-    TRACE (1, "H264\tDYNA\tFailed to load x264_encoder_open");
+#define Quote1(x) #x
+#define QuoteMacro(x) Quote1(x)
+
+  if (!GetFunction("x264_encoder_open_" QuoteMacro(X264_BUILD), (Function &)Xx264_encoder_open)) {
+    TRACE (1, "H264\tDYNA\tFailed to load x264_encoder_open_" QuoteMacro(X264_BUILD));
     return false;
   }
+
+#undef Quote1
+#undef QuoteMacro
+
   if (!GetFunction("x264_param_default", (Function &)Xx264_param_default)) {
     TRACE (1, "H264\tDYNA\tFailed to load x264_param_default");
     return false;
