summaryrefslogtreecommitdiff
path: root/libva/0001-va-release-VADisplayContext-at-the-end-of-vaTerminat.patch
blob: 6c1df31f17f42f66bbac2b96f0719b53255c2818 (plain)
    1 From d4988142a3f2256e38c5c5cdcdfc1b4f5f3c1ea9 Mon Sep 17 00:00:00 2001
    2 From: "Xiang, Haihao" <haihao.xiang@intel.com>
    3 Date: Thu, 18 Jul 2013 13:13:31 +0800
    4 Subject: [PATCH] va: release VADisplayContext at the end of vaTerminate()
    5 
    6 Otherwise it will result in invalid reading in va_TraceEnd()
    7 
    8 Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
    9 ---
   10  va/va.c | 6 +++---
   11  1 file changed, 3 insertions(+), 3 deletions(-)
   12 
   13 diff --git a/va/va.c b/va/va.c
   14 index 6cb17ef..0ba595b 100644
   15 --- a/va/va.c
   16 +++ b/va/va.c
   17 @@ -515,15 +515,15 @@ VAStatus vaTerminate (
   18    free(old_ctx->vtable_vpp);
   19    old_ctx->vtable_vpp = NULL;
   20  
   21 -  if (VA_STATUS_SUCCESS == vaStatus)
   22 -      pDisplayContext->vaDestroy(pDisplayContext);
   23 -
   24    VA_TRACE_LOG(va_TraceTerminate, dpy);
   25  
   26    va_TraceEnd(dpy);
   27  
   28    va_FoolEnd(dpy);
   29  
   30 +  if (VA_STATUS_SUCCESS == vaStatus)
   31 +      pDisplayContext->vaDestroy(pDisplayContext);
   32 +
   33    return vaStatus;
   34  }
   35  
   36 -- 
   37 2.0.0

Generated by cgit