diff --git a/srcpkgs/libva/patches/0001-va-release-VADisplayContext-at-the-end-of-vaTerminat.patch b/srcpkgs/libva/patches/0001-va-release-VADisplayContext-at-the-end-of-vaTerminat.patch new file mode 100644 index 00000000000..0abcf0a45aa --- /dev/null +++ b/srcpkgs/libva/patches/0001-va-release-VADisplayContext-at-the-end-of-vaTerminat.patch @@ -0,0 +1,38 @@ +From d4988142a3f2256e38c5c5cdcdfc1b4f5f3c1ea9 Mon Sep 17 00:00:00 2001 +From: "Xiang, Haihao" +Date: Thu, 18 Jul 2013 13:13:31 +0800 +Subject: [PATCH] va: release VADisplayContext at the end of vaTerminate() + +Otherwise it will result in invalid reading in va_TraceEnd() + +Signed-off-by: Xiang, Haihao +--- + va/va.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/va/va.c b/va/va.c +index 6cb17ef..0ba595b 100644 +--- va/va.c ++++ va/va.c +@@ -515,15 +515,15 @@ VAStatus vaTerminate ( + free(old_ctx->vtable_vpp); + old_ctx->vtable_vpp = NULL; + +- if (VA_STATUS_SUCCESS == vaStatus) +- pDisplayContext->vaDestroy(pDisplayContext); +- + VA_TRACE_LOG(va_TraceTerminate, dpy); + + va_TraceEnd(dpy); + + va_FoolEnd(dpy); + ++ if (VA_STATUS_SUCCESS == vaStatus) ++ pDisplayContext->vaDestroy(pDisplayContext); ++ + return vaStatus; + } + +-- +2.0.0 + diff --git a/srcpkgs/libva/template b/srcpkgs/libva/template index 87c25699b51..31e4e7213a3 100644 --- a/srcpkgs/libva/template +++ b/srcpkgs/libva/template @@ -2,7 +2,7 @@ pkgname=libva _distver=1.3.1 version=1:${_distver} -revision=1 +revision=2 only_for_archs="i686 x86_64" wrksrc="${pkgname}-${_distver}" build_style=gnu-configure