]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
oops ifdef on these
authorBrian West <brian@freeswitch.org>
Fri, 8 Sep 2006 16:51:35 +0000 (16:51 +0000)
committerBrian West <brian@freeswitch.org>
Fri, 8 Sep 2006 16:51:35 +0000 (16:51 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2580 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/codecs/mod_g723_1/mod_g723_1.c

index fde16d2c93171524abffe8be673caee94fce1efe..d7d9a57995434545b61bf103879bb95789e06b86 100644 (file)
@@ -63,7 +63,7 @@ struct g723_context {
 static switch_status_t switch_g723_init(switch_codec_t *codec, switch_codec_flag_t flags,
                                                                          const switch_codec_settings_t *codec_settings) 
 {
-#ifndef G723_PASSTHROUGH
+#ifdef G723_PASSTHROUGH
        codec->flags |= SWITCH_CODEC_FLAG_PASSTHROUGH;
        return  SWITCH_STATUS_FALSE;
 #else
@@ -118,7 +118,7 @@ static switch_status_t switch_g723_encode(switch_codec_t *codec,
                                                                                uint32_t *encoded_rate, 
                                                                                unsigned int *flag) 
 {
-#ifndef G723_PASSTHROUGH
+#ifdef G723_PASSTHROUGH
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "This codec is only usable in passthrough mode!\n");
        return SWITCH_STATUS_FALSE;
 #else
@@ -154,7 +154,7 @@ static switch_status_t switch_g723_decode(switch_codec_t *codec,
                                                                                uint32_t *decoded_rate, 
                                                                                unsigned int *flag) 
 {
-#ifndef G723_PASSTHROUGH
+#ifdef G723_PASSTHROUGH
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "This codec is only usable in passthrough mode!\n");
        return SWITCH_STATUS_FALSE;
 #else