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

Attempt to fix #196

Scenario:

* `mapProfileRtpStream` has "low" and "medium".

* `effectiveProfile` is "medium".

* Somehow `probingProfile` is also "medium". This should not happen (we know
  that?), but it may explain the crash.

* `Consumer::RemoveProfile("medium")` is called.

   * `mapProfileRtpStream` now has just "low" so `RemoveProfile()` returns.
   * `effectiveProfile` still is "medium".
   * But "medium" is no longer in `mapProfileRtpStream`, so crash.
上级 29084283
...@@ -325,8 +325,6 @@ namespace RTC ...@@ -325,8 +325,6 @@ namespace RTC
// Reset the RTP monitor so this probation doesn't affect the current profile. // Reset the RTP monitor so this probation doesn't affect the current profile.
this->rtpMonitor->Reset(); this->rtpMonitor->Reset();
return;
} }
if (this->effectiveProfile == profile) if (this->effectiveProfile == profile)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论