From 83aab23242b72cda4b529c46273267dd11666476 Mon Sep 17 00:00:00 2001 From: Christoph Hohmann Date: Sun, 10 Jul 2016 19:17:28 +0200 Subject: [PATCH] linux-capture: Add OBS_SOURCE_DO_NOT_DUPLICATE to window capture sources It seems that it is not possible to create multiple OpenGL textures for the same window. When sources are duplicated in studio mode this causes window capture sources to become black. The OBS_SOURCE_DO_NOT_DUPLICATE flag prevents that this happens. --- plugins/linux-capture/xcomposite-main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/linux-capture/xcomposite-main.cpp b/plugins/linux-capture/xcomposite-main.cpp index f27132bce..c553fb214 100644 --- a/plugins/linux-capture/xcomposite-main.cpp +++ b/plugins/linux-capture/xcomposite-main.cpp @@ -70,7 +70,8 @@ extern "C" void xcomposite_load(void) sinfo.id = "xcomposite_input"; sinfo.output_flags = OBS_SOURCE_VIDEO | - OBS_SOURCE_CUSTOM_DRAW; + OBS_SOURCE_CUSTOM_DRAW | + OBS_SOURCE_DO_NOT_DUPLICATE; sinfo.get_name = xcompcap_getname; sinfo.create = xcompcap_create;