From 60bd03e45e0e9d7d7ecc907e761fab0bce3cd126 Mon Sep 17 00:00:00 2001 From: pkv Date: Sun, 4 Feb 2024 12:10:24 +0100 Subject: [PATCH] UI: Fix RTMP check in Advanced output RTMP was not being recognized due to a case-sensitive comparison; this changes to a case insensitive comparison to fix the issue. Fixes a bug found in beta channel. Signed-off-by: pkv --- UI/window-basic-main-outputs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/window-basic-main-outputs.cpp b/UI/window-basic-main-outputs.cpp index ac4b85201..e70a3d4ad 100644 --- a/UI/window-basic-main-outputs.cpp +++ b/UI/window-basic-main-outputs.cpp @@ -2273,8 +2273,8 @@ bool AdvancedOutput::StartStreaming(obs_service_t *service) obs_service_t *service_obj = main->GetService(); const char *protocol = obs_service_get_protocol(service_obj); if (protocol) { - if (strncmp(protocol, RTMP_PROTOCOL, strlen(RTMP_PROTOCOL)) == - 0) + if (astrcmpi_n(protocol, RTMP_PROTOCOL, + strlen(RTMP_PROTOCOL)) == 0) is_rtmp = true; }