mirror of
https://github.com/Aitum/obs-aitum-multistream.git
synced 2024-11-21 18:02:33 +01:00
Set vertical outputs to enabled
This commit is contained in:
parent
40e3fb1267
commit
429ac1a431
@ -327,6 +327,7 @@ OBSBasicSettings::OBSBasicSettings(QMainWindow *parent) : QDialog(parent)
|
||||
if (!vertical_outputs)
|
||||
return;
|
||||
auto s = obs_data_create();
|
||||
obs_data_set_bool(s, "enabled", true);
|
||||
obs_data_set_string(s, "name", outputDialog->outputName.toUtf8().constData());
|
||||
obs_data_set_string(s, "stream_server", outputDialog->outputServer.toUtf8().constData());
|
||||
obs_data_set_string(s, "stream_key", outputDialog->outputKey.toUtf8().constData());
|
||||
@ -942,6 +943,8 @@ void OBSBasicSettings::AddServer(QFormLayout *outputsLayout, obs_data_t *setting
|
||||
if (!settings)
|
||||
return;
|
||||
|
||||
if (outputs == vertical_outputs)
|
||||
obs_data_set_bool(settings, "enabled", true);
|
||||
// Set the info from the output dialog
|
||||
obs_data_set_string(settings, "name", outputDialog->outputName.toUtf8().constData());
|
||||
obs_data_set_string(settings, "stream_server", outputDialog->outputServer.toUtf8().constData());
|
||||
|
@ -684,7 +684,6 @@ void MultistreamDock::LoadOutput(obs_data_t *output_data, bool vertical)
|
||||
stop = false;
|
||||
}
|
||||
if (stop) {
|
||||
|
||||
const char *name2 = obs_data_get_string(output_data, "name");
|
||||
for (auto it = outputs.begin(); it != outputs.end(); it++) {
|
||||
if (std::get<std::string>(*it) != name2)
|
||||
|
Loading…
Reference in New Issue
Block a user