From 65396e1db736c0458e377078c972af7ff4c8901f Mon Sep 17 00:00:00 2001 From: tt2468 Date: Tue, 16 Jul 2024 11:43:18 -0700 Subject: [PATCH] requesthandler: Use existence of virtualcam output to test availability An upstream commit removed the `vcamEnabled` private data field from being set, so we need to use a new method now. --- src/requesthandler/RequestHandler_Outputs.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/requesthandler/RequestHandler_Outputs.cpp b/src/requesthandler/RequestHandler_Outputs.cpp index 45bca638e..d2b0526b2 100644 --- a/src/requesthandler/RequestHandler_Outputs.cpp +++ b/src/requesthandler/RequestHandler_Outputs.cpp @@ -21,11 +21,8 @@ with this program. If not, see static bool VirtualCamAvailable() { - OBSDataAutoRelease privateData = obs_get_private_data(); - if (!privateData) - return false; - - return obs_data_get_bool(privateData, "vcamEnabled"); + OBSOutputAutoRelease output = obs_frontend_get_virtualcam_output(); + return output != nullptr; } static bool ReplayBufferAvailable()