解决开启rtp推流鉴权导致udp丢包的问题,提升GB28181推流秒开体验

This commit is contained in:
ziyue
2021-06-23 11:02:39 +08:00
parent e8c9666af0
commit d9de40526d
2 changed files with 52 additions and 18 deletions

View File

@@ -79,6 +79,7 @@ protected:
private:
void emitOnPublish();
void doCachedFunc();
private:
uint32_t _dts = 0;
@@ -95,6 +96,8 @@ private:
atomic_bool _stop_rtp_check{false};
atomic_flag _busy_flag{false};
Ticker _last_check_alive;
recursive_mutex _func_mtx;
deque<function<void()> > _cached_func;
};
}//namespace mediakit