diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 10ebab2d0..4e011b332 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -1187,7 +1187,7 @@ static PayloadType* find_payload_type_from_list(const char* type, int rate, int static bool_t linphone_core_codec_supported(LinphoneCore *lc, SalStreamType type, const char *mime){ if (type == SalVideo && lp_config_get_int(lc->config, "video", "rtp_io", FALSE)){ return TRUE; /*in rtp io mode, we don't transcode video, thus we can support a format for which we have no encoder nor decoder.*/ - if (type == SalAudio && lp_config_get_int(lc->config, "sound", "rtp_io", FALSE)){ + } else if (type == SalAudio && lp_config_get_int(lc->config, "sound", "rtp_io", FALSE)){ return TRUE; /*in rtp io mode, we don't transcode video, thus we can support a format for which we have no encoder nor decoder.*/ } else if (type == SalText) { return TRUE;