summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
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]);