Exercise delayed receive workers UI stalls and call restart with real video decoding

This commit is contained in:
evgeny committed 2026-10-15 16:14:51 +02:00
1 parent b211da9a04
commit 0d65c5bb74
2 files changed
+34 -11

No files matched your search

+4 -2
View File
@@ -95,7 +95,8 @@ static void test_combined(void) {
int head = 0, shown = 0, dropped = 0;
int64_t last = -1, audio = origin - 1000;
for (int64_t now = origin; now < origin + 10000000 && head < 400; now += 1000) {
audio += now >= origin + 4000000 && now < origin + 4200000 ? 1600 : 1000;
if (now < origin + 4200000 || now >= origin + 4320000)
audio += now >= origin + 4000000 && now < origin + 4200000 ? 1600 : 1000;
if (now >= origin + 2000000 && now < origin + 2080000) continue;
int valid = now < origin + 3000000 || now >= origin + 3100000;
for (;;) {
@@ -114,8 +115,9 @@ static void test_combined(void) {
if (action == SHOW) break;
}
}
DEBUG_INFO(DEBUG_CATEGORY_CALL, "playout combined simulation consumed=%d shown=%d dropped=%d", head, shown, dropped);
CHECK(head == 400 && shown > 300 && dropped > 0);
DEBUG_INFO(DEBUG_CATEGORY_CALL, "PASS playout: combined jitter/CPU/FPS/audio tempo simulation shown=%d dropped=%d", shown, dropped);
DEBUG_INFO(DEBUG_CATEGORY_CALL, "PASS playout: combined jitter/CPU/FPS/audio tempo simulation");
}
int main(void) {