From 4c2de4f59a8753b0fe2397920413d3e40418fbd9 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Fri, 5 Feb 2016 11:30:10 +0100 Subject: [PATCH] Disable dummy STUN packets sending when ICE is activated. --- coreapi/linphonecall.c | 9 +++++---- mediastreamer2 | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index ba55fd1c2..7bcd3e7fe 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -2215,9 +2215,8 @@ static void _linphone_call_prepare_ice_for_stream(LinphoneCall *call, int stream ice_session_add_check_list(call->ice_session, cl, stream_index); ms_message("Created new ICE check list for stream [%i]",stream_index); } - if (cl){ - ms->ice_check_list = cl; - ice_check_list_set_rtp_session(ms->ice_check_list, ms->sessions.rtp_session); + if (cl) { + media_stream_set_ice_check_list(ms, cl); } } } @@ -4401,7 +4400,9 @@ void linphone_call_handle_stream_events(LinphoneCall *call, int stream_index){ if (ms){ /* Ensure there is no dangling ICE check list. */ - if (call->ice_session == NULL) ms->ice_check_list = NULL; + if (call->ice_session == NULL) { + media_stream_set_ice_check_list(ms, NULL); + } switch(ms->type){ case MSAudio: diff --git a/mediastreamer2 b/mediastreamer2 index bcd3042a1..5bf8cb076 160000 --- a/mediastreamer2 +++ b/mediastreamer2 @@ -1 +1 @@ -Subproject commit bcd3042a1984088a78a7517774300b0a6647506d +Subproject commit 5bf8cb0768e7f4ef78e1cac27e365602fc00648e