diff --git a/worker/src/RTC/SimulcastConsumer.cpp b/worker/src/RTC/SimulcastConsumer.cpp index 6f5421669d..e467d683e0 100644 --- a/worker/src/RTC/SimulcastConsumer.cpp +++ b/worker/src/RTC/SimulcastConsumer.cpp @@ -500,7 +500,7 @@ namespace RTC continue; } - requiredBitrate = producerRtpStream->GetLayerBitrate(nowMs, 0, temporalLayer); + requiredBitrate = producerRtpStream->GetBitrate(nowMs, 0, temporalLayer); // This is simulcast so we must substract the bitrate of the current temporal // spatial layer if this is the temporal layer 0 of a higher spatial layer. diff --git a/worker/src/RTC/SvcConsumer.cpp b/worker/src/RTC/SvcConsumer.cpp index 5f5d1a7156..851f3f6ce9 100644 --- a/worker/src/RTC/SvcConsumer.cpp +++ b/worker/src/RTC/SvcConsumer.cpp @@ -424,7 +424,7 @@ namespace RTC } requiredBitrate = - this->producerRtpStream->GetLayerBitrate(nowMs, spatialLayer, temporalLayer); + this->producerRtpStream->GetBitrate(nowMs, spatialLayer, temporalLayer); MS_DEBUG_DEV( "testing layers %" PRIi16 ":%" PRIi16 " [virtual bitrate:%" PRIu32