mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-27 04:22:20 +08:00
确保ntp时间戳获取失败时,webrtc rtp重传缓存列队长度正常
This commit is contained in:
@@ -60,8 +60,8 @@ uint32_t NackList::get_cache_ms() {
|
||||
if (_nack_cache_seq.size() < 2) {
|
||||
return 0;
|
||||
}
|
||||
uint32_t back = _nack_cache_pkt[_nack_cache_seq.back()]->getStampMS();
|
||||
uint32_t front = _nack_cache_pkt[_nack_cache_seq.front()]->getStampMS();
|
||||
uint32_t back = _nack_cache_pkt[_nack_cache_seq.back()]->getStampMS(false);
|
||||
uint32_t front = _nack_cache_pkt[_nack_cache_seq.front()]->getStampMS(false);
|
||||
if (back >= front) {
|
||||
return back - front;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user