Проверить отмену пачки видеокадров при завершении звонка
This commit is contained in:
1 parent
66526ad4a5
commit
5e672f01d9
1 file changed
+2
-1
+2
-1
@@ -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;
|
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; }
|
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.
|
// Все команды попадут в 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)
|
if (call_video_port_format(t->call_id, &f.format, 500000)
|
||||||
|| call_video_port_applied(t->call_id, 1, 1, 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;
|
DEBUG_ERROR(DEBUG_CATEGORY_CALL, "video teardown commands were not queued"); t->result = 2; break;
|
||||||
}
|
}
|
||||||
call_video_port_request_key(t->call_id);
|
call_video_port_request_key(t->call_id);
|
||||||
|
|||||||
Reference in new issue
Block a user