提交 d541bc89 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Merge branch 'v3' into pipetransport-srtp

# Changelog
### 3.4.13
* Update `uuid` dep to 7.0.X (new API).
* Fix crash due wrong array index in `PipeConsumer::FillJwon()`.
- Fixes #364
### 3.4.12
* TypeScript: generate `es2020` instead of `es6`.
......
......@@ -73,7 +73,7 @@ class Worker extends EnhancedEventEmitter_1.EnhancedEventEmitter {
// options
{
env: {
MEDIASOUP_VERSION: '3.4.12'
MEDIASOUP_VERSION: '3.4.13'
},
detached: false,
// fd 0 (stdin) : Just ignore it.
......
......@@ -17,7 +17,7 @@ exports.types = types;
/**
* Expose mediasoup version.
*/
exports.version = '3.4.12';
exports.version = '3.4.13';
/**
* Expose parseScalabilityMode() function.
*/
......
{
"name": "mediasoup",
"version": "3.4.12",
"version": "3.4.13",
"description": "Cutting Edge WebRTC Video Conferencing",
"contributors": [
"Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
......
......@@ -54,9 +54,10 @@ namespace RTC
for (auto* rtpStream : this->rtpStreams)
{
jsonRtpStreamsIt->emplace_back(json::value_t::object);
auto& jsonEntry = (*jsonRtpStreamsIt)[jsonRtpStreamsIt->size() - 1];
jsonRtpStreamsIt->emplace_back(json::value_t::object);
rtpStream->FillJson(jsonEntry);
}
}
......@@ -69,7 +70,10 @@ namespace RTC
for (auto* rtpStream : this->rtpStreams)
{
jsonArray.emplace_back(json::value_t::object);
rtpStream->FillJsonStats(jsonArray[jsonArray.size() - 1]);
auto& jsonEntry = jsonArray[jsonArray.size() - 1];
rtpStream->FillJsonStats(jsonEntry);
}
}
......
......@@ -415,18 +415,14 @@ namespace RTC
{
MS_TRACE();
size_t rtpStreamIdx{ 0 };
for (auto& kv : this->mapSsrcRtpStream)
{
jsonArray.emplace_back(json::value_t::object);
auto& jsonEntry = jsonArray[rtpStreamIdx];
auto& jsonEntry = jsonArray[jsonArray.size() - 1];
auto* rtpStream = kv.second;
rtpStream->FillJsonStats(jsonEntry);
++rtpStreamIdx;
}
}
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论