-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transport.cpp: enable tccClient on the first video Consumer:
- no need for it to be simulcast or SVC.
- Loading branch information
Showing
1 changed file
with
6 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22f0961
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Under Windows 10 / VS2017 this commit will cause a crash
22f0961
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
video codec is h264
22f0961
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is a crash just report it:
And also take into account that there is an ongoing crash/bug still to be fixed:
BTW you say "Under Windows 10" just because that's what you use, right?
22f0961
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, it's my mistake, i test compile option /std:c++17 for mediasoup,and forget to add it for libwebrtc; then a lot of Run-Time check failure and heap corruption are detected.
Another is yes, win10 is only my development environment;
However, there are two compilation errors in v3.5.8 under windows:
this is a patch:
diff --git a/worker/include/DepLibUV.hpp b/worker/include/DepLibUV.hpp
--- a/worker/include/DepLibUV.hpp
+++ b/worker/include/DepLibUV.hpp
@@ -32,7 +32,7 @@ public:
// time representation.
static int64_t GetTimeMsInt64()
{
- static constexpr uint64_t MaxInt64{ std::numeric_limits<int64_t>::max() };
+ static constexpr uint64_t MaxInt64{ std::numeric_limits<uint64_t>::max() / 2 };
@@ -47,7 +47,7 @@ public:
// time representation.
static int64_t GetTimeUsInt64()
{
- static constexpr uint64_t MaxInt64{ std::numeric_limits<int64_t>::max() };
+ static constexpr uint64_t MaxInt64{ std::numeric_limits<uint64_t>::max() / 2 };
diff --git a/worker/src/RTC/PortManager.cpp b/worker/src/RTC/PortManager.cpp
--- a/worker/src/RTC/PortManager.cpp
+++ b/worker/src/RTC/PortManager.cpp
@@ -163,7 +163,11 @@ namespace RTC
case Transport::UDP:
uvHandle = reinterpret_cast<uv_handle_t*>(new uv_udp_t());
err = uv_udp_init_ex(
- DepLibUV::GetLoop(), reinterpret_cast<uv_udp_t*>(uvHandle), UV_UDP_RECVMMSG);
+ DepLibUV::GetLoop(), reinterpret_cast<uv_udp_t*>(uvHandle), AF_UNSPEC
+#ifndef _WIN32
+ | UV_UDP_RECVMMSG
+#endif
+ );
break;
22f0961
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, don't report issues in commits. Use GitHub issues if they are really an issue or the mediasoup forum. I will answer here but please do not keep commenting after me. If you still consider there is a bug, open an issue.
I don't know which error you mean. That link shows nothing relevant.
this is a bug in libuv: libuv/libuv#2806
Why? why this? this is not what we want.