[Libva] [PATCH] x11: dri2: fix double Unlocks/SyncHandle

Xiang, Haihao haihao.xiang at intel.com
Sun Mar 8 19:36:31 PDT 2015


On Wed, 2015-03-04 at 10:52 +0000, Lionel Landwerlin wrote:
> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> ---
>  va/x11/va_dri2.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/va/x11/va_dri2.c b/va/x11/va_dri2.c
> index 1c91bca..2a00e86 100644
> --- a/va/x11/va_dri2.c
> +++ b/va/x11/va_dri2.c
> @@ -269,8 +269,6 @@ VA_DRI2Buffer *VA_DRI2GetBuffers(Display *dpy, XID drawable,
>  	p[i] = attachments[i];
>  
>      if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
> -	UnlockDisplay(dpy);
> -	SyncHandle();


Is this patch made against the latest libva ?  I can't find the above
code in VA_DRI2GetBuffers().



>  	return NULL;
>      }
>  
> @@ -281,8 +279,6 @@ VA_DRI2Buffer *VA_DRI2GetBuffers(Display *dpy, XID drawable,
>      buffers = Xmalloc(rep.count * sizeof buffers[0]);
>      if (buffers == NULL) {
>  	_XEatData(dpy, rep.count * sizeof repBuffer);
> -	UnlockDisplay(dpy);
> -	SyncHandle();
>  	return NULL;
>      }
>  




More information about the Libva mailing list