Ver Fonte

linux-pipewire: Always load PipeWire captures

After the removal of GLX, we effectively always load the PipeWire
captures. Remove the switch statement.
Georges Basile Stavracas Neto há 3 anos atrás
pai
commit
042c6c078c
1 ficheiros alterados com 1 adições e 9 exclusões
  1. 1 9
      plugins/linux-pipewire/linux-pipewire.c

+ 1 - 9
plugins/linux-pipewire/linux-pipewire.c

@@ -36,15 +36,7 @@ bool obs_module_load(void)
 {
 	pw_init(NULL, NULL);
 
-	// OBS PipeWire Screen Capture
-	switch (obs_get_nix_platform()) {
-#ifdef ENABLE_WAYLAND
-	case OBS_NIX_PLATFORM_WAYLAND:
-#endif
-	case OBS_NIX_PLATFORM_X11_EGL:
-		pipewire_capture_load();
-		break;
-	}
+	pipewire_capture_load();
 
 	return true;
 }