UI: Fix inconsistencies in FindProtocol

- Fallback to RTMP if custom server is empty.
- Check if RTMPS is supported since OBS Studio can be built without it.
This commit is contained in:
tytan652
2023-03-20 16:37:12 +01:00
committed by Ryan Foster
parent 1af982fcfa
commit d529f2c35f

View File

@@ -533,11 +533,14 @@ void OBSBasicSettings::ServiceChanged()
QString OBSBasicSettings::FindProtocol()
{
if (IsCustomService() && !ui->customServer->text().isEmpty()) {
if (IsCustomService()) {
if (ui->customServer->text().isEmpty())
return QString("RTMP");
QString server = ui->customServer->text();
if (server.startsWith("rtmps://"))
if (obs_is_output_protocol_registered("RTMPS") &&
server.startsWith("rtmps://"))
return QString("RTMPS");
if (server.startsWith("ftl://"))