]> git.sesse.net Git - mlt/commitdiff
Look for libvdpau.so in /usr/lib64 as well.
authorDan Dennedy <dan@dennedy.org>
Wed, 10 Feb 2010 10:03:06 +0000 (02:03 -0800)
committerDan Dennedy <ddennedy@linux-6hle.site>
Wed, 10 Feb 2010 10:03:06 +0000 (02:03 -0800)
src/modules/avformat/vdpau.c

index db3beb593962da963d3b541b9d73005ba97509b3..7a059fbc797ca1f822c65c64a73e3c6f8c20b438 100644 (file)
@@ -61,8 +61,10 @@ static int vdpau_init( producer_avformat this )
        if ( !g_vdpau )
        {
                int flags = RTLD_NOW;
-               void *object = dlopen( "/usr/lib/libvdpau.so", flags );
-               
+               void *object = dlopen( "/usr/lib64/libvdpau.so", flags );
+
+               if ( !object )
+                       object = dlopen( "/usr/lib/libvdpau.so", flags );
                if ( object )
                {
                        VdpDeviceCreateX11 *create_device = dlsym( object, "vdp_device_create_x11" );
@@ -100,6 +102,10 @@ static int vdpau_init( producer_avformat this )
                                dlclose( object );
                        }
                }
+               else
+               {
+                       mlt_log( MLT_PRODUCER_SERVICE(this->parent), MLT_LOG_WARNING, "%s: failed to dlopen libvdpau.so\n  (%s)\n", __FUNCTION__, dlerror() );
+               }
        }
        else
        {