UI: Add function to enable/disable outputs
This commit is contained in:
parent
d1329d1798
commit
b850bc6415
2 changed files with 13 additions and 0 deletions
|
|
@ -3881,6 +3881,8 @@ void OBSBasic::StartStreaming()
|
|||
{
|
||||
if (outputHandler->StreamingActive())
|
||||
return;
|
||||
if (!enableOutputs)
|
||||
return;
|
||||
|
||||
if (api)
|
||||
api->on_event(OBS_FRONTEND_EVENT_STREAMING_STARTING);
|
||||
|
|
@ -4158,6 +4160,8 @@ void OBSBasic::StartRecording()
|
|||
{
|
||||
if (outputHandler->RecordingActive())
|
||||
return;
|
||||
if (!enableOutputs)
|
||||
return;
|
||||
|
||||
if (api)
|
||||
api->on_event(OBS_FRONTEND_EVENT_RECORDING_STARTING);
|
||||
|
|
@ -4258,6 +4262,8 @@ void OBSBasic::StartReplayBuffer()
|
|||
return;
|
||||
if (outputHandler->ReplayBufferActive())
|
||||
return;
|
||||
if (!enableOutputs)
|
||||
return;
|
||||
|
||||
obs_output_t *output = outputHandler->replayBuffer;
|
||||
obs_data_t *hotkeys = obs_hotkeys_save_output(output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue