From 794563145c452630000bed349cac643637453016 Mon Sep 17 00:00:00 2001 From: yapingcat Date: Wed, 12 Aug 2020 13:55:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8Aint64=5Ft=E8=BD=AC=E6=88=90=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 通过http api 获取streams信息时id显示乱码,应该将int转化为字符串 --- trunk/src/app/srs_app_statistic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/src/app/srs_app_statistic.cpp b/trunk/src/app/srs_app_statistic.cpp index 6da79f2a2..083b3f456 100644 --- a/trunk/src/app/srs_app_statistic.cpp +++ b/trunk/src/app/srs_app_statistic.cpp @@ -47,7 +47,7 @@ int64_t srs_generate_id() SrsStatisticVhost::SrsStatisticVhost() { - id = srs_generate_id(); + id = std::to_string(srs_generate_id()); clk = new SrsWallClock(); kbps = new SrsKbps(clk); @@ -98,7 +98,7 @@ srs_error_t SrsStatisticVhost::dumps(SrsJsonObject* obj) SrsStatisticStream::SrsStatisticStream() { - id = srs_generate_id(); + id = std::to_string(srs_generate_id()); vhost = NULL; active = false;