Skip to content
Snippets Groups Projects
Commit c27d2135 authored by Philippe Gorley's avatar Philippe Gorley Committed by Adrien Béraud
Browse files

video: clean up video_rtp_session

Replaces empty methods and std::bind calls with lambdas.

Change-Id: I0d9c876a9ba0bbdc6a77a85e0e2d75766312f952
parent 451efc76
Branches
No related tags found
No related merge requests found
......@@ -58,14 +58,14 @@ VideoRtpSession::VideoRtpSession(const string &callID,
, lastLongRTCPCheck_(std::chrono::system_clock::now())
, videoBitrateInfo_ {}
, rtcpCheckerThread_([] { return true; },
std::bind(&VideoRtpSession::processRtcpChecker, this),
std::bind(&VideoRtpSession::cleanupRtcpChecker, this))
[this]{ processRtcpChecker(); },
[]{})
, receiverRestartThread_([]{ return true; },
[this]{ processReceiverRestart(); },
[]{})
, packetLossThread_([] { return true; },
[this]{ processPacketLoss(); },
[](){})
[]{})
{
setupVideoBitrateInfo(); // reset bitrate
}
......@@ -585,10 +585,6 @@ VideoRtpSession::processRtcpChecker()
rtcpCheckerThread_.wait_for(std::chrono::seconds(RTCP_CHECKING_INTERVAL));
}
void
VideoRtpSession::cleanupRtcpChecker()
{}
void
VideoRtpSession::processReceiverRestart()
{
......
......@@ -132,7 +132,6 @@ private:
InterruptedThreadLoop rtcpCheckerThread_;
void processRtcpChecker();
void cleanupRtcpChecker();
InterruptedThreadLoop receiverRestartThread_;
void processReceiverRestart();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment