Browse Source

linux-capture: Return different descriptions for different captures

Use the current description for X11 / GLX, and a new description for all
PipeWire-based captures (EGL/X11 and EGL/Wayland)
Georges Basile Stavracas Neto 5 years ago
parent
commit
10a1a708fb
1 changed files with 6 additions and 1 deletions
  1. 6 1
      plugins/linux-capture/linux-capture.c

+ 6 - 1
plugins/linux-capture/linux-capture.c

@@ -25,7 +25,12 @@ OBS_DECLARE_MODULE()
 OBS_MODULE_USE_DEFAULT_LOCALE("linux-xshm", "en-US")
 MODULE_EXPORT const char *obs_module_description(void)
 {
-	return "xcomposite/xshm based window/screen capture for X11";
+#ifdef ENABLE_PIPEWIRE
+	if (obs_get_nix_platform() != OBS_NIX_PLATFORM_X11_GLX)
+		return "PipeWire based window/screen capture for X11 and Wayland";
+	else
+#endif
+		return "xcomposite/xshm based window/screen capture for X11";
 }
 
 extern struct obs_source_info xshm_input;