mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
Do not create ICE check list for non-active streams.
It may lead to some crashes if a check list exists for a non-active stream.
This commit is contained in:
parent
d819cf6b36
commit
42f23a4d6c
1 changed files with 1 additions and 1 deletions
|
|
@ -876,7 +876,7 @@ void linphone_core_update_ice_from_remote_media_description(LinphoneCall *call,
|
|||
for (i = 0; i < md->n_total_streams; i++) {
|
||||
const SalStreamDescription *stream = &md->streams[i];
|
||||
IceCheckList *cl = ice_session_check_list(call->ice_session, i);
|
||||
if (cl == NULL) {
|
||||
if ((cl == NULL) && (i < md->n_active_streams)) {
|
||||
cl = ice_check_list_new();
|
||||
ice_session_add_check_list(call->ice_session, cl);
|
||||
switch (stream->type) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue