Skip to content

Commit

Permalink
[coreVdpau] Try to load VDPAU library by versioned symlink
Browse files Browse the repository at this point in the history
The unversioned symlink libvdpau.so belongs to the devel package at least on
Debian and derivatives as well as on Fedora and therefore is usually missing.
  • Loading branch information
eumagga0x2a committed Dec 23, 2020
1 parent 8cb1d7c commit 06db115
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -102,10 +102,13 @@ VdpGetProcAddress *admVdpau::getProcAddress2(void)
*/
bool admVdpau::init(GUI_WindowInfo *x)
{
#define STR(x) #x
#define MKSTRING(x) STR(x)
#define VDPAU_LIBNAME libvdpau.so.1
memset(&ADM_coreVdpau::funcs,0,sizeof(ADM_coreVdpau::funcs));
if(false==vdpauDynaLoader.loadLibrary("libvdpau.so"))
if(false==vdpauDynaLoader.loadLibrary(MKSTRING(VDPAU_LIBNAME)))
{
ADM_info("Cannot load libvdpau.so\n");
ADM_info("Cannot load " MKSTRING(VDPAU_LIBNAME) "\n");
return false;
}
ADM_createVdpX11=(VdpDeviceCreateX11*)vdpauDynaLoader.getSymbol("vdp_device_create_x11");
Expand Down

0 comments on commit 06db115

Please sign in to comment.