From 16f3ceb9978a1ea4a80873e10ee1231eef8cc8ec Mon Sep 17 00:00:00 2001 From: tt2468 Date: Mon, 25 Jul 2022 08:05:03 -0700 Subject: [PATCH] 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 --- src/eventhandler/EventHandler_Outputs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eventhandler/EventHandler_Outputs.cpp b/src/eventhandler/EventHandler_Outputs.cpp index 2792dbd3..c8a43e35 100644 --- a/src/eventhandler/EventHandler_Outputs.cpp +++ b/src/eventhandler/EventHandler_Outputs.cpp @@ -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;