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-04 12:10:24 +01:00 • committed by Ryan Foster
commit 60bd03e45e

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;
}