diff --git a/tester/call_tester.c b/tester/call_tester.c index f0cf5facd..adfdf960f 100644 --- a/tester/call_tester.c +++ b/tester/call_tester.c @@ -3091,12 +3091,12 @@ static void multiple_early_media(void) { void check_media_direction(LinphoneCoreManager* mgr, LinphoneCall *call, MSList* lcs,LinphoneMediaDirection audio_dir, LinphoneMediaDirection video_dir) { BC_ASSERT_PTR_NOT_NULL(call); if (call) { + const LinphoneCallParams *params = linphone_call_get_current_params(call); +#ifdef VIDEO_ENABLED int current_recv_iframe = mgr->stat.number_of_IframeDecoded; int expected_recv_iframe=0; int dummy = 0; - const LinphoneCallParams *params = linphone_call_get_current_params(call); - BC_ASSERT_EQUAL(audio_dir,linphone_call_params_get_audio_direction(params), int, "%d"); -#ifdef VIDEO_ENABLED + BC_ASSERT_EQUAL(video_dir,linphone_call_params_get_video_direction(params), int, "%d"); linphone_call_set_next_video_frame_decoded_callback(call,linphone_call_cb,mgr->lc); linphone_call_send_vfu_request(call); @@ -3120,6 +3120,7 @@ void check_media_direction(LinphoneCoreManager* mgr, LinphoneCall *call, MSList* BC_ASSERT_TRUE(wait_for_list(lcs, &mgr->stat.number_of_IframeDecoded,current_recv_iframe + expected_recv_iframe,3000)); #endif + BC_ASSERT_EQUAL(audio_dir,linphone_call_params_get_audio_direction(params), int, "%d"); switch (audio_dir) { case LinphoneMediaDirectionInactive: BC_ASSERT_TRUE(linphone_call_get_audio_stats(call)->upload_bandwidth<5);