Skip to content

Commit

Permalink
- Fix a bug that when recording was in progress with uplink in standb…
Browse files Browse the repository at this point in the history
…y, deactivating recording in settings would erroneously deactivate standby and cause it to become inactive.
  • Loading branch information
hanatyan128 committed Jan 7, 2025
1 parent 461a40b commit b9d2833
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/outputs/egress-link-output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b9d2833

Please sign in to comment.