mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Removed useless ref in complex call tester
This commit is contained in:
parent
3f38e29408
commit
dafc344292
1 changed files with 4 additions and 8 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue