统一代码风格

This commit is contained in:
xiongziliang
2020-12-27 21:21:31 +08:00
parent 3a0fa27198
commit 61b29efe94
3 changed files with 7 additions and 5 deletions

View File

@@ -135,8 +135,10 @@ void RtpProcess::addTrackCompleted() {
}
bool RtpProcess::alive() {
if(_stop_rtp_check.load())
if (_stop_rtp_check.load()) {
return true;
}
GET_CONFIG(int, timeoutSec, RtpProxy::kTimeoutSec)
if (_last_frame_time.elapsedTime() / 1000 < timeoutSec) {
return true;

View File

@@ -56,10 +56,12 @@ public:
* 设置RtpProcess onDetach事件回调
*/
void setOnDetach(const function<void()> &cb);
/**
* 暂停Rtp服务的RTP流检测
*/
void pauseRtpCheck();
/**
* 恢复Rtp服务的RTP流检测
*/