mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-05 23:26:13 -05:00
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:
@@ -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://"))
|
||||
|
||||
Reference in New Issue
Block a user