瀏覽代碼

Merge pull request #570 from reboot/fix_xcomposite_source_duplication

linux-capture: Add OBS_SOURCE_DO_NOT_DUPLICATE to window capture sources
Jim 9 年之前
父節點
當前提交
c5835a152e
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      plugins/linux-capture/xcomposite-main.cpp

+ 2 - 1
plugins/linux-capture/xcomposite-main.cpp

@@ -70,7 +70,8 @@ extern "C" void xcomposite_load(void)
 
 
 	sinfo.id = "xcomposite_input";
 	sinfo.id = "xcomposite_input";
 	sinfo.output_flags = OBS_SOURCE_VIDEO |
 	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.get_name       = xcompcap_getname;
 	sinfo.create         = xcompcap_create;
 	sinfo.create         = xcompcap_create;