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

Ensure Consumer is enabled before claling SourceRtpParametersUpdated() on it.

上级 b1343648
...@@ -193,6 +193,9 @@ namespace RTC ...@@ -193,6 +193,9 @@ namespace RTC
void Consumer::SourceRtpParametersUpdated() void Consumer::SourceRtpParametersUpdated()
{ {
if (!IsEnabled())
return;
// TODO: Set special flag to be ready for random seq numbers. // TODO: Set special flag to be ready for random seq numbers.
} }
......
...@@ -1361,7 +1361,8 @@ namespace RTC ...@@ -1361,7 +1361,8 @@ namespace RTC
for (auto* consumer : consumers) for (auto* consumer : consumers)
{ {
consumer->SourceResume(); if (consumer->IsEnabled())
consumer->SourceResume();
} }
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论