summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2015-03-09 09:42:45 +0000
committerXiang, Haihao <haihao.xiang@intel.com>2015-03-10 12:51:04 +0800
commit91d12ce7b5cd5b1aa397003b97e1896b2fac3908 (patch)
tree24770341f730200e3440adcd5fd49d8c23fe8ac5
parentf8d319462f5148fc69ae2cbf8cfdd05ef467f4fb (diff)
downloadlibva-91d12ce7b5cd5b1aa397003b97e1896b2fac3908.tar.gz
x11: dri2: fix double Unlocks/SyncHandle
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> (cherry picked from commit a14498bc78cd245184e27e9810adf7a8f723d031)
-rw-r--r--va/x11/va_dri2.c4
1 files changed, 0 insertions, 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;
}