mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
eventhandler: Provide outputPath
on OUTPUT_STARTED too
4.x apparently included this path during output start along with stop. It appears safe to include this on output start. Closes #963
This commit is contained in:
parent
2875fc7313
commit
16f3ceb997
@ -77,7 +77,7 @@ void EventHandler::HandleRecordStateChanged(ObsOutputState state)
|
|||||||
json eventData;
|
json eventData;
|
||||||
eventData["outputActive"] = GetOutputStateActive(state);
|
eventData["outputActive"] = GetOutputStateActive(state);
|
||||||
eventData["outputState"] = state;
|
eventData["outputState"] = state;
|
||||||
if (state == OBS_WEBSOCKET_OUTPUT_STOPPED) {
|
if (state == OBS_WEBSOCKET_OUTPUT_STOPPED || state == OBS_WEBSOCKET_OUTPUT_STARTED) {
|
||||||
eventData["outputPath"] = Utils::Obs::StringHelper::GetLastRecordFileName();
|
eventData["outputPath"] = Utils::Obs::StringHelper::GetLastRecordFileName();
|
||||||
} else {
|
} else {
|
||||||
eventData["outputPath"] = nullptr;
|
eventData["outputPath"] = nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user