Recover persistent video lag by skipping decoded presentation
This commit is contained in:
1 parent
4a759115c9
commit
27cbf2ba44
3 files changed
+26
-8
No files matched your search
@@ -593,7 +593,7 @@ void CallVideoEngine::present() {
|
||||
action = call_video_playout_poll(&playout, slot ? &slot->timing : nullptr, started, &clock, total,
|
||||
1 + m->pipeline.load(std::memory_order_acquire));
|
||||
if (action == CALL_VIDEO_PLAYOUT_SHOW) publishImage(slot->image, slot->timing.pts_us);
|
||||
else if (action == CALL_VIDEO_PLAYOUT_DROP_ORDER) {
|
||||
else if (action == CALL_VIDEO_PLAYOUT_DROP_ORDER || action == CALL_VIDEO_PLAYOUT_DROP_LATE) {
|
||||
m->pictures.release(); ++completed; m->rxWake.notify();
|
||||
}
|
||||
} else ++metrics.busy;
|
||||
|
||||
Reference in new issue
Block a user