UI: Trim custom server string

Spaces in the URL can cause issues as ffmpeg-mux is unable to figure
out the protocol. Fixes #5100.
This commit is contained in:
Richard Stanway committed 2021-08-12 23:41:14 +02:00
1 parent 5b18faeb49
commit 7217671eb0
2 files changed
+9 -7

No files matched your search

+2 -2
View File
@@ -369,7 +369,7 @@ bool AutoConfigStreamPage::validatePage()
obs_service_apply_encoder_settings(service, settings, nullptr);
if (wiz->customServer) {
QString server = ui->customServer->text();
QString server = ui->customServer->text().trimmed();
wiz->server = wiz->serverName = QT_TO_UTF8(server);
} else {
wiz->serverName = QT_TO_UTF8(ui->server->currentText());
@@ -693,7 +693,7 @@ void AutoConfigStreamPage::UpdateMoreInfoLink()
void AutoConfigStreamPage::UpdateKeyLink()
{
QString serviceName = ui->service->currentText();
QString customServer = ui->customServer->text();
QString customServer = ui->customServer->text().trimmed();
bool isYoutube = false;
QString streamKeyLink;