fix(tester): avoid empty tests array in call_video_tester when video is not enabled

This commit is contained in:
Ronan Abhamon 2018-05-25 10:46:47 +02:00
parent a6d022f0bb
commit 610f826ce6
2 changed files with 5 additions and 5 deletions

View file

@ -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{

View file

@ -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;