From 6df91052baf0a5c0245a7bb04ad65e862f8ff482 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Sat, 28 Feb 2015 17:14:40 +0100 Subject: [PATCH] Fix build with Visual Studio when video is enabled. --- tester/call_tester.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tester/call_tester.c b/tester/call_tester.c index 03276cc96..01a9b3258 100644 --- a/tester/call_tester.c +++ b/tester/call_tester.c @@ -3219,6 +3219,7 @@ static void video_call_snapshot(void) { LinphoneCall *callInst = NULL; char *filename = create_filepath(liblinphone_tester_writable_dir_prefix, "snapshot", "jpeg"); int dummy = 0; + bool_t call_succeeded = FALSE; linphone_core_enable_video_capture(marie->lc, TRUE); linphone_core_enable_video_display(marie->lc, TRUE); @@ -3227,8 +3228,9 @@ static void video_call_snapshot(void) { linphone_call_params_enable_video(marieParams, TRUE); linphone_call_params_enable_video(paulineParams, TRUE); - if((CU_ASSERT_TRUE(call_with_params(marie, pauline, marieParams, paulineParams))) - && (CU_ASSERT_PTR_NOT_NULL(callInst = linphone_core_get_current_call(marie->lc)))) { + CU_ASSERT_TRUE(call_succeeded = call_with_params(marie, pauline, marieParams, paulineParams)); + CU_ASSERT_PTR_NOT_NULL(callInst = linphone_core_get_current_call(marie->lc)); + if((call_succeeded == TRUE) && (callInst != NULL)) { linphone_call_take_video_snapshot(callInst, filename); wait_for_until(marie->lc, pauline->lc, &dummy, 1, 5000); CU_ASSERT_EQUAL(access(filename, F_OK), 0);