From df73eb2c10dfe817c413cc42afb48294287bfeee Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Mon, 9 Dec 2019 18:15:02 +0800 Subject: [PATCH] =?UTF-8?q?getSsrcInfo=E6=8E=A5=E5=8F=A3ssrc=E4=BD=BF?= =?UTF-8?q?=E7=94=A816=E8=BF=9B=E5=88=B6=E5=AD=97=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/WebApi.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/WebApi.cpp b/server/WebApi.cpp index 64402ad8..8b7487a5 100644 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -697,7 +697,11 @@ void installWebApi() { API_REGIST(api,getSsrcInfo,{ CHECK_SECRET(); CHECK_ARGS("ssrc"); - auto process = RtpSelector::Instance().getProcess(allArgs["ssrc"],false); + uint32_t ssrc = 0; + stringstream ss(allArgs["ssrc"]); + ss >> std::hex >> ssrc; + + auto process = RtpSelector::Instance().getProcess(ssrc,false); if(!process){ val["exist"] = false; return;