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

Add assert

上级 6e08c5ba
......@@ -82,6 +82,8 @@ namespace RTC
{
MS_TRACE();
MS_ASSERT(this->producerRtpStreamScores, "producerRtpStreamScores not set");
// NOTE: Hardcoded values in PipeTransport.
jsonObject["score"] = 10;
jsonObject["producerScore"] = 10;
......
......@@ -69,6 +69,8 @@ namespace RTC
{
MS_TRACE();
MS_ASSERT(this->producerRtpStreamScores, "producerRtpStreamScores not set");
jsonObject["score"] = this->rtpStream->GetScore();
if (this->producerRtpStream)
......
......@@ -179,6 +179,8 @@ namespace RTC
{
MS_TRACE();
MS_ASSERT(this->producerRtpStreamScores, "producerRtpStreamScores not set");
auto* producerCurrentRtpStream = GetProducerCurrentRtpStream();
jsonObject["score"] = this->rtpStream->GetScore();
......
......@@ -160,6 +160,8 @@ namespace RTC
{
MS_TRACE();
MS_ASSERT(this->producerRtpStreamScores, "producerRtpStreamScores not set");
jsonObject["score"] = this->rtpStream->GetScore();
if (this->producerRtpStream)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论