 +            VADriverContextP    ctx,
 +            VABufferID          buf_id          /* in */
 +        );
- };
++
+         /* DEPRECATED */
+         VAStatus
+         (*vaGetSurfaceAttributes)(
+-- 
+1.9.1
 
- struct VADriverContext
---
-1.9.1

+VAStatus
+vaReleaseBufferHandle(VADisplay dpy, VABufferID buf_id);
+
 /*
 Render (Decode) Pictures

diff --git a/third_party/libva/va/va_backend.h b/third_party/libva/va/va_backend.h
index bd82849..5e8dc42 100644
--- a/third_party/libva/va/va_backend.h
+++ b/third_party/libva/va/va_backend.h
@@ -420,6 +420,19 @@ struct VADriverVTable
             VASurfaceAttrib    *attrib_list,
             unsigned int       *num_attribs
         );
+
+        VAStatus
+        (*vaAcquireBufferHandle)(
+            VADriverContextP    ctx,

From 8e2686c292afd905405fc0ecc7e5d9be542c6e81 Mon Sep 17 00:00:00 2001
From: jiajia qin <jiajia.qin@intel.com>
Date: Wed, 4 Mar 2015 03:43:19 -0800
Subject: [PATCH] Use vaAcquireBufferHandle APIs to instead of vaLockBuffer
 APIs

