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 <pkv@obsproject.com>
This commit is contained in:
pkv
2024-02-06 21:36:37 -05:00
committed by Ryan Foster
parent 66978c4d23
commit 60bd03e45e
+2 -2
View File
@@ -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;
}