Skip to content

Commit

Permalink
Fix crash with new outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Nov 16, 2023
1 parent 681a2fc commit 5c31454
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions config-dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,6 @@ void OBSBasicSettings::SaveSettings()
int enabled_count = 0;
int active_count = 0;
for (size_t idx = 0; idx < servers.size(); idx++) {
canvasDock->streamOutputs[idx].name =
server_names[idx]->text().toUtf8().constData();
std::string sk = keys[idx]->text().toUtf8().constData();
std::string ss =
servers[idx]->currentText().toUtf8().constData();
Expand All @@ -1240,7 +1238,8 @@ void OBSBasicSettings::SaveSettings()
canvasDock->streamOutputs[idx].output)) {
active_count++;
}

canvasDock->streamOutputs[idx].name =
server_names[idx]->text().toUtf8().constData();
if (sk != canvasDock->streamOutputs[idx].stream_key ||
ss != canvasDock->streamOutputs[idx].stream_server) {
canvasDock->streamOutputs[idx].stream_key = sk;
Expand Down

0 comments on commit 5c31454

Please sign in to comment.