Removed useless ref in complex call tester

This commit is contained in:
Sylvain Berfini 2015-09-24 10:20:51 +02:00
parent 3f38e29408
commit dafc344292

View file

@ -141,7 +141,7 @@ static void call_with_audio_mline_before_video_in_sdp() {
if (sipp_out) {
BC_ASSERT_TRUE(wait_for(mgr->lc, mgr->lc, &mgr->stat.number_of_LinphoneCallIncomingReceived, 1));
call = linphone_call_ref(linphone_core_get_current_call(mgr->lc));
call = linphone_core_get_current_call(mgr->lc);
BC_ASSERT_PTR_NOT_NULL(call);
if (call) {
linphone_core_accept_call(mgr->lc, call);
@ -152,7 +152,6 @@ static void call_with_audio_mline_before_video_in_sdp() {
BC_ASSERT_TRUE(linphone_call_log_video_enabled(linphone_call_get_call_log(call)));
check_rtcp(call);
linphone_call_unref(call);
}
BC_ASSERT_TRUE(wait_for(mgr->lc, mgr->lc, &mgr->stat.number_of_LinphoneCallEnd, 1));
@ -183,7 +182,7 @@ static void call_with_video_mline_before_audio_in_sdp() {
if (sipp_out) {
BC_ASSERT_TRUE(wait_for(mgr->lc, mgr->lc, &mgr->stat.number_of_LinphoneCallIncomingReceived, 1));
call = linphone_call_ref(linphone_core_get_current_call(mgr->lc));
call = linphone_core_get_current_call(mgr->lc);
BC_ASSERT_PTR_NOT_NULL(call);
if (call) {
linphone_core_accept_call(mgr->lc, call);
@ -194,7 +193,6 @@ static void call_with_video_mline_before_audio_in_sdp() {
BC_ASSERT_TRUE(linphone_call_log_video_enabled(linphone_call_get_call_log(call)));
check_rtcp(call);
linphone_call_unref(call);
}
BC_ASSERT_TRUE(wait_for(mgr->lc, mgr->lc, &mgr->stat.number_of_LinphoneCallEnd, 1));
@ -225,7 +223,7 @@ static void call_with_multiple_audio_mline_in_sdp() {
if (sipp_out) {
BC_ASSERT_TRUE(wait_for(mgr->lc, mgr->lc, &mgr->stat.number_of_LinphoneCallIncomingReceived, 1));
call = linphone_call_ref(linphone_core_get_current_call(mgr->lc));
call = linphone_core_get_current_call(mgr->lc);
BC_ASSERT_PTR_NOT_NULL(call);
if (call) {
linphone_core_accept_call(mgr->lc, call);
@ -236,7 +234,6 @@ static void call_with_multiple_audio_mline_in_sdp() {
BC_ASSERT_TRUE(linphone_call_log_video_enabled(linphone_call_get_call_log(call)));
check_rtcp(call);
linphone_call_unref(call);
}
BC_ASSERT_TRUE(wait_for(mgr->lc, mgr->lc, &mgr->stat.number_of_LinphoneCallEnd, 1));
@ -267,7 +264,7 @@ static void call_with_multiple_video_mline_in_sdp() {
if (sipp_out) {
BC_ASSERT_TRUE(wait_for(mgr->lc, mgr->lc, &mgr->stat.number_of_LinphoneCallIncomingReceived, 1));
call = linphone_call_ref(linphone_core_get_current_call(mgr->lc));
call = linphone_core_get_current_call(mgr->lc);
BC_ASSERT_PTR_NOT_NULL(call);
if (call) {
linphone_core_accept_call(mgr->lc, call);
@ -278,7 +275,6 @@ static void call_with_multiple_video_mline_in_sdp() {
BC_ASSERT_TRUE(linphone_call_log_video_enabled(linphone_call_get_call_log(call)));
check_rtcp(call);
linphone_call_unref(call);
}
BC_ASSERT_TRUE(wait_for(mgr->lc, mgr->lc, &mgr->stat.number_of_LinphoneCallEnd, 1));