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:
François Grisez 2015-03-16 17:12:37 +01:00
parent c94a52f3f0
commit dd38893ff1

View file

@ -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;
} }