提交 a69f7265 编写于 作者: J jp9000

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 be8ddc06 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.
上级 caceb623
...@@ -36,6 +36,8 @@ static void ensure_valid_url(struct rtmp_common *service, json_t *json, ...@@ -36,6 +36,8 @@ static void ensure_valid_url(struct rtmp_common *service, json_t *json,
if (!service->server || !servers || !json_is_array(servers)) if (!service->server || !servers || !json_is_array(servers))
return; return;
if (astrcmpi(service->server, "auto") == 0)
return;
json_array_foreach (servers, index, server) { json_array_foreach (servers, index, server) {
const char *url = get_string_val(server, "url"); const char *url = get_string_val(server, "url");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册