From dd38893ff1d75cd37c3f24934c4e459ba2c936b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Mon, 16 Mar 2015 17:12:37 +0100 Subject: [PATCH] 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. --- coreapi/linphonecore.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index eaff404dc..4aa402f81 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -1105,6 +1105,7 @@ static bool_t get_codec(LinphoneCore *lc, SalStreamType type, int index, Payload *default_list=ms_list_append(*default_list, pt); } if (enabled ) pt->flags|=PAYLOAD_TYPE_ENABLED; + else pt->flags&=~PAYLOAD_TYPE_ENABLED; *ret=pt; return TRUE; }