Browse Source

Проверить отмену пачки видеокадров при завершении звонка

stream-multiview
evgeny 7 days ago
parent
commit
5e672f01d9
  1. 3
      tests/test_call.c

3
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);

Loading…
Cancel
Save