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:
parent
1af982fcfa
commit
d529f2c35f
1 changed files with 5 additions and 2 deletions
|
|
@ -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://"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue