mediasoup 3.23.0 → 3.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ### NEXT
4
4
 
5
+ ### 3.23.1
6
+
7
+ Worker: Fix, use `thread_local` buffer on `MS_ABORT()` ([PR#1873](https://github.com/versatica/mediasoup/pull/1873)).
8
+
5
9
  ### 3.23.0
6
10
 
7
11
  - Bump up Meson from 1.9.1 to 1.11.2 ([PR #1861](https://github.com/versatica/mediasoup/pull/1861)).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediasoup",
3
- "version": "3.23.0",
3
+ "version": "3.23.1",
4
4
  "description": "Cutting Edge WebRTC Video Conferencing",
5
5
  "contributors": [
6
6
  "Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
@@ -470,11 +470,10 @@ public:
470
470
  #define MS_ABORT(desc, ...) \
471
471
  do \
472
472
  { \
473
- std::fprintf(stderr, "(ABORT) " _MS_LOG_STR_DESC desc _MS_LOG_SEPARATOR_CHAR_STD, _MS_LOG_ARG, ##__VA_ARGS__); \
473
+ std::snprintf(Logger::buffer, Logger::BufferSize, "(ABORT) " _MS_LOG_STR_DESC desc _MS_LOG_SEPARATOR_CHAR_STD, _MS_LOG_ARG, ##__VA_ARGS__); \
474
+ std::fprintf(stderr, "%s", Logger::buffer); \
474
475
  std::fflush(stderr); \
475
- char abortMessage[Logger::BufferSize]; \
476
- std::snprintf(abortMessage, Logger::BufferSize, "(ABORT) " _MS_LOG_STR_DESC desc _MS_LOG_SEPARATOR_CHAR_STD, _MS_LOG_ARG, ##__VA_ARGS__); \
477
- throw std::runtime_error(abortMessage); \
476
+ throw std::runtime_error(Logger::buffer); \
478
477
  } \
479
478
  while (false)
480
479
  #endif
@@ -28,7 +28,6 @@ namespace RTC
28
28
  private:
29
29
  struct NackInfo
30
30
  {
31
- NackInfo() = default;
32
31
  explicit NackInfo(uint64_t createdAtMs, uint16_t seq, uint16_t sendAtSeq)
33
32
  : createdAtMs(createdAtMs), seq(seq), sendAtSeq(sendAtSeq)
34
33
  {