Commit 23e0abde by dingcan

Update RtpProcess.cpp

parent 0a678661
...@@ -281,13 +281,13 @@ toolkit::EventPoller::Ptr RtpProcess::getOwnerPoller(MediaSource &sender) { ...@@ -281,13 +281,13 @@ toolkit::EventPoller::Ptr RtpProcess::getOwnerPoller(MediaSource &sender) {
return _sock ? _sock->getPoller() : nullptr; return _sock ? _sock->getPoller() : nullptr;
} }
void RtpProcess::setHelper(const std::weak_ptr<RtcpContext> help){ void RtpProcess::setHelper(std::weak_ptr<RtcpContext> help) {
_help = std::move(help); _help = std::move(help);
} }
int RtpProcess::getLossRate(MediaSource &sender, TrackType type){ int RtpProcess::getLossRate(MediaSource &sender, TrackType type) {
auto help = _help.lock(); auto help = _help.lock();
if(!help){ if (!help) {
return -1; return -1;
} }
auto expected = help->getExpectedPacketsInterval(); auto expected = help->getExpectedPacketsInterval();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论