Skip to content
Snippets Groups Projects
Commit d7708201 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

videoRtpSession: avoid busy loop

waitForRTCP as nothing to do with the readBlockingMode, so we should
remove this from the condition as it causes a busy loop (if video
is muted, receiver is stopped, condition_variable is always true,
causing a loop on the adaptative bitrate algorithm).

GitLab: #878
Change-Id: If19a43c5350eb43eff694b162d412a80d541f449
parent 576b60a9
Branches
No related tags found
No related merge requests found
......@@ -222,8 +222,7 @@ SocketPair::waitForRTCP(std::chrono::seconds interval)
{
std::unique_lock<std::mutex> lock(rtcpInfo_mutex_);
return cvRtcpPacketReadyToRead_.wait_for(lock, interval, [this] {
return interrupted_ or not listRtcpRRHeader_.empty() or not listRtcpREMBHeader_.empty()
or not readBlockingMode_;
return interrupted_ or not listRtcpRRHeader_.empty() or not listRtcpREMBHeader_.empty();
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment