]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
switch_false currently returns false on NULL
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 5 Mar 2014 23:36:30 +0000 (17:36 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 5 Mar 2014 23:36:35 +0000 (17:36 -0600)
src/switch_core_media.c

index c0dc0b48c090ac20ca80c229ebbaad7567fc7c5b..c5a768441d6e73de210329efc1a6fa896c987221 100644 (file)
@@ -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???*/
        }