From 27482a5459a4296097515d94ad1b9613b1c026c4 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Mon, 17 Jan 2022 10:35:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/WebHook.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/WebHook.cpp b/server/WebHook.cpp index 1157e728..c33a4998 100755 --- a/server/WebHook.cpp +++ b/server/WebHook.cpp @@ -226,7 +226,7 @@ static const string kEdgeServerParam = "edge=1"; static string getPullUrl(const string &origin_fmt, const MediaInfo &info) { char url[1024] = { 0 }; - if (origin_fmt.size() > snprintf(url, sizeof(url), origin_fmt.data(), info._app.data(), info._streamid.data())) { + if ((ssize_t)origin_fmt.size() > snprintf(url, sizeof(url), origin_fmt.data(), info._app.data(), info._streamid.data())) { WarnL << "get origin url failed, origin_fmt:" << origin_fmt; return ""; } @@ -234,7 +234,7 @@ static string getPullUrl(const string &origin_fmt, const MediaInfo &info) { return string(url) + '?' + kEdgeServerParam + '&' + VHOST_KEY + '=' + info._vhost + '&' + info._param_strs; } -static void pullStreamFromOrigin(const vector& urls, int index, int failed_cnt, const MediaInfo &args, +static void pullStreamFromOrigin(const vector& urls, size_t index, size_t failed_cnt, const MediaInfo &args, const function &closePlayer) { GET_CONFIG(float, cluster_timeout_sec, Cluster::kTimeoutSec);