From 0894623c4fa15dffac9442c2e04db38e6f28d744 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Tue, 14 Aug 2018 13:12:39 -0700 Subject: [PATCH] rtmp-services: Do not check for valid URL if using "auto" "Auto" is sort of a special use-case for certain services (Twitch/Mixer), and the code recently added in be8ddc06a would unintentionally override it. This would for example cause the "Auto" setting on Twitch to set the user to use an Asia server unintentionally because "auto" is not in the json file. --- plugins/rtmp-services/rtmp-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/rtmp-services/rtmp-common.c b/plugins/rtmp-services/rtmp-common.c index ded8676d5349e4..22de2242257b8b 100644 --- a/plugins/rtmp-services/rtmp-common.c +++ b/plugins/rtmp-services/rtmp-common.c @@ -36,6 +36,8 @@ static void ensure_valid_url(struct rtmp_common *service, json_t *json, if (!service->server || !servers || !json_is_array(servers)) return; + if (astrcmpi(service->server, "auto") == 0) + return; json_array_foreach (servers, index, server) { const char *url = get_string_val(server, "url");