libva-vdpau-driver: fixes compile issue FS#1059

This commit is contained in:
Danny Rawlins 2014-09-12 12:53:07 +10:00
parent d3958fa054
commit 3c39faba7c
3 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,4 @@
aa5f63941036c18e928cd0444ec58310 glx.patch
5ec6d452d2dd307434ea3d32da49c3e5 libva-vdpau-driver-0.7.4.tar.bz2
e1a98235651ff5e6a481860afcfe3032 libva.patch
46e7aa98fb6fabf51a3efc52dd920616 vdpau.patch

View File

@ -6,15 +6,16 @@
name=libva-vdpau-driver
version=0.7.4
release=3
release=4
source=(http://www.freedesktop.org/software/vaapi/releases/$name/$name-$version.tar.bz2
glx.patch libva.patch)
glx.patch libva.patch vdpau.patch)
build() {
cd $name-$version
patch -p1 -i $SRC/glx.patch
patch -p1 -i $SRC/libva.patch
patch -p1 -i $SRC/vdpau.patch
./configure \
--prefix=/usr \

View File

@ -0,0 +1,12 @@
diff -ur a/src/vdpau_decode.c b/src/vdpau_decode.c
--- a/src/vdpau_decode.c 2012-10-05 10:02:58.000000000 -0500
+++ b/src/vdpau_decode.c 2014-07-18 07:42:37.240166340 -0500
@@ -1289,7 +1289,7 @@
driver_data,
obj_context->vdp_decoder,
obj_surface->vdp_surface,
- (VdpPictureInfo)&obj_context->vdp_picture_info,
+ (VdpPictureInfo*)&obj_context->vdp_picture_info,
obj_context->vdp_bitstream_buffers_count,
obj_context->vdp_bitstream_buffers
);