mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Fix bug in the management of the payloads list
It was impossible to disable the codecs which are enabled at the first use of Linphone.
This commit is contained in:
parent
c94a52f3f0
commit
dd38893ff1
1 changed files with 1 additions and 0 deletions
|
|
@ -1105,6 +1105,7 @@ static bool_t get_codec(LinphoneCore *lc, SalStreamType type, int index, Payload
|
||||||
*default_list=ms_list_append(*default_list, pt);
|
*default_list=ms_list_append(*default_list, pt);
|
||||||
}
|
}
|
||||||
if (enabled ) pt->flags|=PAYLOAD_TYPE_ENABLED;
|
if (enabled ) pt->flags|=PAYLOAD_TYPE_ENABLED;
|
||||||
|
else pt->flags&=~PAYLOAD_TYPE_ENABLED;
|
||||||
*ret=pt;
|
*ret=pt;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue