[Kdenlive-devel] [PATCH 2/2] Fix vdpau library paths

Mikko Rapeli mikko.rapeli at iki.fi
Wed Jul 25 09:17:34 UTC 2012


From: Christian Marillat <marillat at debian.org>

They have changed in Debian.
---
 src/modules/avformat/vdpau.c |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/modules/avformat/vdpau.c b/src/modules/avformat/vdpau.c
index 7756cc0..c4ae33a 100644
--- a/src/modules/avformat/vdpau.c
+++ b/src/modules/avformat/vdpau.c
@@ -70,9 +70,16 @@ static int vdpau_init( producer_avformat self )
 	if ( !vdpau_init_done )
 	{
 		int flags = RTLD_NOW;
-		object = dlopen( "/usr/lib64/libvdpau.so", flags );
+		object = dlopen( "/usr/lib/libvdpau.so", flags );
+#ifdef ARCH_X86_64
 		if ( !object )
-			object = dlopen( "/usr/lib/libvdpau.so", flags );
+			object = dlopen( "/usr/lib64/libvdpau.so", flags );
+		if ( !object )
+			object = dlopen( "/usr/lib/x86_64-linux-gnu/libvdpau.so.1", flags );
+#elif ARCH_X86
+		if ( !object )
+			object = dlopen( "/usr/lib/i386-linux-gnu/libvdpau.so.1", flags );
+#endif
 		if ( !object )
 			object = dlopen( "/usr/local/lib/libvdpau.so", flags );
 		if ( object )
-- 
1.7.10.4





More information about the Kdenlive mailing list