From 610f826ce6f4bdeda406621dc30947bcaf57bc05 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Fri, 25 May 2018 10:46:47 +0200 Subject: [PATCH] fix(tester): avoid empty tests array in call_video_tester when video is not enabled --- tester/call_video_tester.c | 8 ++++---- tester/liblinphone_tester.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tester/call_video_tester.c b/tester/call_video_tester.c index c0d64e100..f699f2f51 100644 --- a/tester/call_video_tester.c +++ b/tester/call_video_tester.c @@ -669,10 +669,10 @@ void video_call_base_3(LinphoneCoreManager* caller,LinphoneCoreManager* callee, linphone_core_set_video_policy(callee->lc,&callee_policy); linphone_core_set_video_policy(caller->lc,&caller_policy); } - + linphone_core_set_preferred_video_size_by_name(caller->lc, "QVGA"); linphone_core_set_preferred_video_size_by_name(callee->lc, "QVGA"); - + linphone_core_set_video_device(caller->lc, "Mire: Mire (synthetic moving picture)"); linphone_core_set_video_device(callee->lc, "Mire: Mire (synthetic moving picture)"); @@ -2175,11 +2175,11 @@ static void video_call_expected_fps_for_specified_bandwidth(int bandwidth, int f int count; /*wait some time until the target fps is reached. Indeed the bandwidth measurement may take several iterations to converge to a value big enough to allow mediastreamer2 to switch to the high fps profile*/ - + for (count = 0 ; count < 3; count++){ /*wait for at least the first TMMBR to arrive*/ BC_ASSERT_TRUE(wait_for_until(marie->lc, pauline->lc, &marie->stat.last_tmmbr_value_received, 1, 10000)); - + if ((int)vstream->configured_fps == fps){ break; }else{ diff --git a/tester/liblinphone_tester.h b/tester/liblinphone_tester.h index 46c657832..e13d40a5a 100644 --- a/tester/liblinphone_tester.h +++ b/tester/liblinphone_tester.h @@ -50,7 +50,7 @@ extern test_suite_t call_test_suite; #if VIDEO_ENABLED extern test_suite_t call_video_test_suite; -#endif +#endif // if VIDEO_ENABLED extern test_suite_t clonable_object_test_suite; extern test_suite_t conference_event_test_suite;