From: Anthony Minessale Date: Wed, 5 Mar 2014 23:36:30 +0000 (-0600) Subject: switch_false currently returns false on NULL X-Git-Tag: v1.5.11~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3121d930e562ddf0f63d66ea8798691ee315565;p=thirdparty%2Ffreeswitch.git switch_false currently returns false on NULL --- diff --git a/src/switch_core_media.c b/src/switch_core_media.c index c0dc0b48c0..c5a768441d 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -226,7 +226,7 @@ SWITCH_DECLARE(int) switch_core_media_crypto_keylen(switch_rtp_crypto_key_type_t static int get_channels(const char *name, int dft) { - if (switch_false(switch_core_get_variable("NDLB_broken_opus_sdp")) && !strcasecmp(name, "opus")) { + if (!switch_true(switch_core_get_variable("NDLB_broken_opus_sdp")) && !strcasecmp(name, "opus")) { return 2; /* IKR???*/ }