From 4ec90a714cad889367eb7a0404e2f6bff9e5eead Mon Sep 17 00:00:00 2001 From: "RICKPORTABLE\\rosbo" Date: Wed, 14 Oct 2026 14:28:03 -0500 Subject: [PATCH] [VirtualCam] Fix Windows code path to return exception --- obs-studio-client/source/nodeobs_service.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/obs-studio-client/source/nodeobs_service.cpp b/obs-studio-client/source/nodeobs_service.cpp index 02c08196b..5b10ce1a4 100644 --- a/obs-studio-client/source/nodeobs_service.cpp +++ b/obs-studio-client/source/nodeobs_service.cpp @@ -383,17 +383,11 @@ Napi::Value service::OBS_service_startVirtualCam(const Napi::CallbackInfo &info) if (!conn) return info.Env().Undefined(); -#if defined(__APPLE__) - // On macOS, we will wait for a response. Our situation is more complicated due to the vcam SystemExtension - // which will return errors that we need to display to the user. std::vector response = conn->call_synchronous_helper("NodeOBS_Service", "OBS_service_startVirtualCam", {}); if (response.size() > 1) { // We encountered an error setting up the vcam Napi::Error::New(info.Env(), response[1].value_str).ThrowAsJavaScriptException(); } -#else - conn->call("NodeOBS_Service", "OBS_service_startVirtualCam", {}); -#endif return info.Env().Undefined(); }