diff --git a/src/outputs/egress-link-output.cpp b/src/outputs/egress-link-output.cpp index 1db86cd..f08e4fe 100644 --- a/src/outputs/egress-link-output.cpp +++ b/src/outputs/egress-link-output.cpp @@ -908,6 +908,12 @@ void EgressLinkOutput::start() //--- Gather parameters ---// auto streaming = !connection.isEmpty(); auto recording = obs_data_get_bool(settings, "recording"); + + if (!streaming && reconstructPipeline) { + setStatus(EGRESS_LINK_OUTPUT_STATUS_STAND_BY); + apiClient->incrementStandByOutputs(); + } + if (!streaming && !recording) { // Both of output and recording are not enabled return; @@ -995,11 +1001,6 @@ void EgressLinkOutput::start() } } - if (goStandBy) { - setStatus(EGRESS_LINK_OUTPUT_STATUS_STAND_BY); - apiClient->incrementStandByOutputs(); - } - if (!streamingOutput && !recordingOutput) { // Both of output and recording are not ready return;