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

Xiang, Haihao haihao.xiang at intel.com
Mon Mar 9 22:08:44 PDT 2015


Pushed.

Thanks
Haihao

> 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 b4a4398..a395260 100644
> --- a/va/x11/va_dri2.c
> +++ b/va/x11/va_dri2.c
> @@ -308,8 +308,6 @@ VA_DRI2Buffer *VA_DRI2GetBuffers_internal(XExtDisplayInfo *info,
>  	p[i] = attachments[i];
>  
>      if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
> -	UnlockDisplay(dpy);
> -	SyncHandle();
>  	return NULL;
>      }
>  
> @@ -323,8 +321,6 @@ VA_DRI2Buffer *VA_DRI2GetBuffers_internal(XExtDisplayInfo *info,
>      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