[libva-vdpau-driver] Fix build with newer libva
Nicolas Chauvet
kwizart at fedoraproject.org
Sat Oct 25 11:54:28 UTC 2014
commit 26de39b1640422860d0a8b2e087b6927d64bded1
Author: Nicolas Chauvet <kwizart at gmail.com>
Date: Sat Oct 25 13:54:20 2014 +0200
Fix build with newer libva
libva-vdpau-driver-0.7.4-fix_type.patch | 12 ++++++++++++
libva-vdpau-driver.spec | 7 ++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/libva-vdpau-driver-0.7.4-fix_type.patch b/libva-vdpau-driver-0.7.4-fix_type.patch
new file mode 100644
index 0000000..93b80f8
--- /dev/null
+++ b/libva-vdpau-driver-0.7.4-fix_type.patch
@@ -0,0 +1,12 @@
+diff -up libva-vdpau-driver-0.7.4/src/vdpau_decode.c.orig libva-vdpau-driver-0.7.4/src/vdpau_decode.c
+--- libva-vdpau-driver-0.7.4/src/vdpau_decode.c.orig 2012-10-05 17:02:58.000000000 +0200
++++ libva-vdpau-driver-0.7.4/src/vdpau_decode.c 2014-10-25 13:46:26.565474656 +0200
+@@ -1289,7 +1289,7 @@ vdpau_EndPicture(
+ 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
+ );
diff --git a/libva-vdpau-driver.spec b/libva-vdpau-driver.spec
index 4cc0bdb..c289c23 100644
--- a/libva-vdpau-driver.spec
+++ b/libva-vdpau-driver.spec
@@ -1,12 +1,13 @@
Name: libva-vdpau-driver
Version: 0.7.4
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: HW video decode support for VDPAU platforms
License: GPLv2+
URL: http://cgit.freedesktop.org/vaapi/vdpau-driver
Source0: http://www.freedesktop.org/software/vaapi/releases/%{name}/%{name}-%{version}.tar.bz2
Patch0: %{name}-0.7.4-glext-85.patch
Patch1: %{name}-0.7.4-drop-h264-api.patch
+Patch2: %{name}-0.7.4-fix_type.patch
#BuildRequires: libtool
BuildRequires: libva-devel
@@ -24,6 +25,7 @@ VDPAU Backend for Video Acceleration (VA) API.
%if 0%{?fedora} >= 20 || 0%{?rhel} >= 7
%patch1 -p1
%endif
+%patch2 -p1 -b .fix_type
%build
%configure \
@@ -41,6 +43,9 @@ find %{buildroot} -name '*.la' -delete
%{_libdir}/dri/*.so
%changelog
+* Sat Oct 25 2014 Nicolas Chauvet <kwizart at gmail.com> - 0.7.4-10
+- Fix build with newer libva
+
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.7.4-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
More information about the scm-commits
mailing list