From b97c469d7972d59e42a7407131bd30ac4dbdf4a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <remi@remlab.net> Date: Sat, 26 Dec 2009 22:09:49 +0200 Subject: [PATCH] XCB/XVideo: skip completely if overlay is disabled --- modules/video_output/xcb/xvideo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/video_output/xcb/xvideo.c b/modules/video_output/xcb/xvideo.c index a0171828671d..c02cc8517721 100644 --- a/modules/video_output/xcb/xvideo.c +++ b/modules/video_output/xcb/xvideo.c @@ -297,6 +297,9 @@ static int Open (vlc_object_t *obj) { vout_display_t *vd = (vout_display_t *)obj; vout_display_sys_t *p_sys = malloc (sizeof (*p_sys)); + + if (!var_CreateGetBool (obj, "overlay")) + return VLC_EGENERIC; if (p_sys == NULL) return VLC_ENOMEM; -- GitLab