|
|
|
|
@ -597,7 +597,7 @@ static void call_tick(void* arg) {
|
|
|
|
|
if (call_video_configure_rate(A, t->call_id, &f.format, 350000, 400000) != -1) { |
|
|
|
|
DEBUG_ERROR(DEBUG_CATEGORY_CALL, "video envelope changed without new generation"); t->result = 2; break; |
|
|
|
|
} |
|
|
|
|
f.format.generation = f.frame_id = 4; |
|
|
|
|
f = video_test_frame(t->call_id, 4); f.format.maximum_bps = 3000000; |
|
|
|
|
if (call_video_configure_rate(A, t->call_id, &f.format, 350000, 400000) || call_video_send_frame(A, &f) != 1) { |
|
|
|
|
DEBUG_ERROR(DEBUG_CATEGORY_CALL, "video failed to replace withdrawn envelope"); t->result = 2; break; |
|
|
|
|
} |
|
|
|
|
@ -639,6 +639,9 @@ static void call_tick(void* arg) {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (t->phase == P_DONE) { t->result = 1; uasync_stop(t->ua); return; } |
|
|
|
|
if (t->result == 2) { |
|
|
|
|
DEBUG_ERROR(DEBUG_CATEGORY_CALL, "call test failed in phase=%d", t->phase); uasync_stop(t->ua); return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (++t->ticks > MAX_TICKS) { |
|
|
|
|
fprintf(stderr, "test: timeout in phase %d (A_conn=%d B_conn=%d evA:inc=%d acc=%d end=%d dec=%d evB:inc=%d acc=%d end=%d dec=%d)\n", |
|
|
|
|
|