mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-30 06:42:22 +08:00
统一代码风格
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -56,10 +56,12 @@ public:
|
||||
* 设置RtpProcess onDetach事件回调
|
||||
*/
|
||||
void setOnDetach(const function<void()> &cb);
|
||||
|
||||
/**
|
||||
* 暂停Rtp服务的RTP流检测
|
||||
*/
|
||||
void pauseRtpCheck();
|
||||
|
||||
/**
|
||||
* 恢复Rtp服务的RTP流检测
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user