mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
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.
This commit is contained in:
parent
f8bc7c4f59
commit
65396e1db7
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user