mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
Update RtpProcess.cpp
This commit is contained in:
parent
0a678661e3
commit
23e0abde04
@ -281,13 +281,13 @@ toolkit::EventPoller::Ptr RtpProcess::getOwnerPoller(MediaSource &sender) {
|
||||
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);
|
||||
}
|
||||
|
||||
int RtpProcess::getLossRate(MediaSource &sender, TrackType type){
|
||||
int RtpProcess::getLossRate(MediaSource &sender, TrackType type) {
|
||||
auto help = _help.lock();
|
||||
if(!help){
|
||||
if (!help) {
|
||||
return -1;
|
||||
}
|
||||
auto expected = help->getExpectedPacketsInterval();
|
||||
|
Loading…
Reference in New Issue
Block a user