[vlc-devel] commit: XCB/XVideo: skip completely if overlay is disabled ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Dec 26 21:10:13 CET 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Dec 26 22:09:49 2009 +0200| [b97c469d7972d59e42a7407131bd30ac4dbdf4a0] | committer: Rémi Denis-Courmont
XCB/XVideo: skip completely if overlay is disabled
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b97c469d7972d59e42a7407131bd30ac4dbdf4a0
---
modules/video_output/xcb/xvideo.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/video_output/xcb/xvideo.c b/modules/video_output/xcb/xvideo.c
index a017182..c02cc85 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;
More information about the vlc-devel
mailing list