- Fix first vdpau initialisation failed

PR:		ports/156648
Submitted by:	Mickael Maillot <mickael.maillot@gmail.com> (maintainer)
This commit is contained in:
Bernhard Froehlich 2011-04-26 11:11:03 +00:00
parent 4948895ccc
commit 58cb90063a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=273203

View File

@ -1,11 +1,13 @@
--- xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp.orig 2010-12-17 07:17:41.000000000 +0100
+++ xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp 2010-12-28 13:26:49.000000000 +0100
@@ -647,7 +647,7 @@
--- xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp.orig 2011-03-05 04:33:37.000000000 +0100
+++ xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp 2011-04-25 19:11:54.000000000 +0200
@@ -647,8 +647,9 @@
void CVDPAU::InitVDPAUProcs()
{
- char* error;
+ const char* error;
+ (void)dlerror();
dl_vdp_device_create_x11 = (VdpStatus (*)(Display*, int, VdpDevice*, VdpStatus (**)(VdpDevice, VdpFuncId, void**)))dlsym(dl_handle, (const char*)"vdp_device_create_x11");
error = dlerror();
if (error)