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

SimulcastConsumer.cpp: (again) no need to check preferredSpatialLayer != -1

上级 cb624afd
......@@ -648,8 +648,8 @@ namespace RTC
if (!producerRtpStream)
continue;
// Ignore spatial layers higher than the preferred one, if defined.
if (this->preferredSpatialLayer != -1 && idx > this->preferredSpatialLayer)
// Ignore spatial layers higher than the preferred one.
if (idx > this->preferredSpatialLayer)
return;
if (producerRtpStream->GetScore() >= maxScore)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论