From 23e0abde04446caf006db1ddbca369bd8ef1d4bf Mon Sep 17 00:00:00 2001 From: dingcan Date: Wed, 27 Jul 2022 14:13:54 +0800 Subject: [PATCH] Update RtpProcess.cpp --- src/Rtp/RtpProcess.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Rtp/RtpProcess.cpp b/src/Rtp/RtpProcess.cpp index 66ba1cc1..d224a3ee 100644 --- a/src/Rtp/RtpProcess.cpp +++ b/src/Rtp/RtpProcess.cpp @@ -281,13 +281,13 @@ toolkit::EventPoller::Ptr RtpProcess::getOwnerPoller(MediaSource &sender) { return _sock ? _sock->getPoller() : nullptr; } -void RtpProcess::setHelper(const std::weak_ptr help){ +void RtpProcess::setHelper(std::weak_ptr 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();