Allow smaller pts decrease.
GitOrigin-RevId: 31e2429ec98b9d64eb5d38b07a9a356b038cf94f
This commit is contained in:
parent
f18dea245c
commit
97e6e99eaf
@ -289,8 +289,8 @@ Promise<> UpdatesManager::set_pts(int32 pts, const char *source) {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
Promise<> result;
|
Promise<> result;
|
||||||
if (pts > get_pts() || (0 < pts && pts < get_pts() - 999999)) { // pts can only go up or drop cardinally
|
if (pts > get_pts() || (0 < pts && pts < get_pts() - 399999)) { // pts can only go up or drop cardinally
|
||||||
if (pts < get_pts() - 999999) {
|
if (pts < get_pts() - 399999) {
|
||||||
LOG(WARNING) << "Pts decreases from " << get_pts() << " to " << pts << " from " << source << ". " << get_state();
|
LOG(WARNING) << "Pts decreases from " << get_pts() << " to " << pts << " from " << source << ". " << get_state();
|
||||||
} else {
|
} else {
|
||||||
LOG(INFO) << "Update pts from " << get_pts() << " to " << pts << " from " << source;
|
LOG(INFO) << "Update pts from " << get_pts() << " to " << pts << " from " << source;
|
||||||
|
Reference in New Issue
Block a user