From d529f2c35f264fc647b43437be8e2972acd2f0b9 Mon Sep 17 00:00:00 2001 From: tytan652 Date: Mon, 20 Mar 2023 16:37:12 +0100 Subject: [PATCH] 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. --- UI/window-basic-settings-stream.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/UI/window-basic-settings-stream.cpp b/UI/window-basic-settings-stream.cpp index 004d8ab50..8be7155eb 100644 --- a/UI/window-basic-settings-stream.cpp +++ b/UI/window-basic-settings-stream.cpp @@ -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://"))