Files
obs-studio/optional-browser-websocket.patch
MaxxedSUSE e086302fe3 Disable bundled x264 and browser/websocket plugins; prefer OpenH264 and external plugins
- Disable obs-x264 plugin and forcibly disable libx264 detection due to licensing
  incompatibilities with distribution policies.
- Prefer OpenH264 as the supported H.264 encoder backend.
- Make obs-browser and obs-websocket optional and disable them in-tree, allowing
  usage as external plugins instead.
- Adjust UI logic to only expose x264 when the encoder is actually available.

This aligns OBS Studio with distribution licensing requirements while keeping
functionality available via supported external components.
2026-02-11 08:02:16 -03:00

26 lines
1.2 KiB
Diff

diff '--color=auto' -rubN obs-studio.orig/plugins/CMakeLists.txt obs-studio/plugins/CMakeLists.txt
--- obs-studio.orig/plugins/CMakeLists.txt 2026-02-09 22:55:08.614323461 -0300
+++ obs-studio/plugins/CMakeLists.txt 2026-02-09 23:33:53.155798703 -0300
@@ -12,7 +12,9 @@
macro(check_obs_browser)
if((OS_WINDOWS AND CMAKE_VS_PLATFORM_NAME MATCHES "(ARM64|x64)") OR OS_MACOS OR OS_LINUX)
if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/obs-browser/CMakeLists.txt")
- message(FATAL_ERROR "Required submodule 'obs-browser' not available.")
+ message(STATUS "obs-browser submodule not available, browser plugin disabled.")
+ add_custom_target(obs-browser)
+ target_disable(obs-browser)
else()
add_subdirectory(obs-browser)
endif()
@@ -24,7 +26,9 @@
macro(check_obs_websocket)
if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/obs-websocket/CMakeLists.txt")
- message(FATAL_ERROR "Required submodule 'obs-websocket' not available.")
+ message(STATUS "obs-websocket submodule not available, websocket plugin disabled.")
+ add_custom_target(obs-websocket)
+ target_disable(obs-websocket)
else()
add_subdirectory(obs-websocket)
endif()