diff --git a/tests/test_call.c b/tests/test_call.c index c0f3b92f..d9a3eeb8 100644 --- a/tests/test_call.c +++ b/tests/test_call.c @@ -722,9 +722,10 @@ static void call_tick(void* arg) { struct call_video_frame f = video_test_frame(t->call_id, 1); f.frame_id = 4; f.pts_us += 99999; if (call_video_send_frame(B, &f) != 0) { DEBUG_ERROR(DEBUG_CATEGORY_CALL, "video ignored decoder rejection"); t->result = 2; break; } // Все команды попадут в uasync после синхронного ENDED; TX ещё принадлежит mailbox. + struct call_video_frame closing[2] = {f, f}; ++closing[1].frame_id; closing[1].pts_us += 33333; if (call_video_port_format(t->call_id, &f.format, 500000) || call_video_port_applied(t->call_id, 1, 1, 500000) - || call_video_port_decoded(t->call_id, 1, 1) || call_video_port_send(&f, 1) != 1) { + || call_video_port_decoded(t->call_id, 1, 1) || call_video_port_send(closing, 2) != 1) { DEBUG_ERROR(DEBUG_CATEGORY_CALL, "video teardown commands were not queued"); t->result = 2; break; } call_video_port_request_key(t->call_id);