Skip to content

Commit 65396e1

Browse files
committed
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.
1 parent f8bc7c4 commit 65396e1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/requesthandler/RequestHandler_Outputs.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ with this program. If not, see <https://www.gnu.org/licenses/>
2121

2222
static bool VirtualCamAvailable()
2323
{
24-
OBSDataAutoRelease privateData = obs_get_private_data();
25-
if (!privateData)
26-
return false;
27-
28-
return obs_data_get_bool(privateData, "vcamEnabled");
24+
OBSOutputAutoRelease output = obs_frontend_get_virtualcam_output();
25+
return output != nullptr;
2926
}
3027

3128
static bool ReplayBufferAvailable()

0 commit comments

Comments
 (0)