diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c index 45bea807a3..41dbef6975 100644 --- a/libavdevice/x11grab.c +++ b/libavdevice/x11grab.c @@ -224,8 +224,8 @@ x11grab_read_header(AVFormatContext *s1) } if (x11grab->use_shm) { - use_shm = XShmQueryExtension(dpy); - av_log(s1, AV_LOG_INFO, "shared memory extension%s found\n", use_shm ? "" : " not"); + use_shm = XShmQueryExtension(dpy); + av_log(s1, AV_LOG_INFO, "shared memory extension%s found\n", use_shm ? "" : " not"); } if(use_shm) {