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:
tt2468 2022-07-25 08:05:03 -07:00
parent 2875fc7313
commit 16f3ceb997

View File

@ -77,7 +77,7 @@ void EventHandler::HandleRecordStateChanged(ObsOutputState state)
json eventData;
eventData["outputActive"] = GetOutputStateActive(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();
} else {
eventData["outputPath"] = nullptr;