summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorJerome Leclanche <jerome@leclan.ch>2014-05-22 02:27:18 +0100
committerwm4 <wm4@nowhere>2014-05-22 09:29:56 +0200
commit3d065a53fccfabf569860db7177e2fb979e2a2df (patch)
tree83af3fb840083527e95c8868b40c99d99fbfbaeb /video
parentfcdaaa203b2cde6060722aff0decfe16cf35e27f (diff)
downloadmpv-3d065a53fccfabf569860db7177e2fb979e2a2df.tar.bz2
mpv-3d065a53fccfabf569860db7177e2fb979e2a2df.tar.xz
x11: fix a warning with --disable-xext
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'video')
-rw-r--r--video/out/vo_x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_x11.c b/video/out/vo_x11.c
index d1d6b6accc..a8b37d4016 100644
--- a/video/out/vo_x11.c
+++ b/video/out/vo_x11.c
@@ -228,8 +228,8 @@ shmemerror:
static void freeMyXImage(struct priv *p, int foo)
{
- struct vo *vo = p->vo;
#if HAVE_SHM && HAVE_XEXT
+ struct vo *vo = p->vo;
if (p->Shmem_Flag) {
XShmDetach(vo->x11->display, &p->Shminfo[foo]);
XDestroyImage(p->myximage[foo]);