Skip to content

Commit

Permalink
requesthandler: Use existence of virtualcam output to test availability
Browse files Browse the repository at this point in the history
An upstream commit removed the `vcamEnabled` private data field from
being set, so we need to use a new method now.
  • Loading branch information
tt2468 committed Jul 16, 2024
1 parent f8bc7c4 commit 65396e1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/requesthandler/RequestHandler_Outputs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ with this program. If not, see <https://www.gnu.org/licenses/>

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()
Expand Down

0 comments on commit 65396e1

Please sign in to comment.