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:
parent
5b18faeb49
commit
7217671eb0
2 changed files with 9 additions and 7 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue