obs-frontend-api: Make a few frontend API thread-safe
Additionally, check for null output handlers.
This commit is contained in:
parent
9cf40e230b
commit
d17ee20863
3 changed files with 43 additions and 3 deletions
|
|
@ -6998,3 +6998,24 @@ OBSBasic *OBSBasic::Get()
|
|||
{
|
||||
return reinterpret_cast<OBSBasic*>(App()->GetMainWindow());
|
||||
}
|
||||
|
||||
bool OBSBasic::StreamingActive()
|
||||
{
|
||||
if (!outputHandler)
|
||||
return false;
|
||||
return outputHandler->StreamingActive();
|
||||
}
|
||||
|
||||
bool OBSBasic::RecordingActive()
|
||||
{
|
||||
if (!outputHandler)
|
||||
return false;
|
||||
return outputHandler->RecordingActive();
|
||||
}
|
||||
|
||||
bool OBSBasic::ReplayBufferActive()
|
||||
{
|
||||
if (!outputHandler)
|
||||
return false;
|
||||
return outputHandler->ReplayBufferActive();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue