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

Merge branch 'v3' into pipetransport-srtp

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