]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix typo
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 10 Apr 2009 17:40:17 +0000 (17:40 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 10 Apr 2009 17:40:17 +0000 (17:40 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12985 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/codecs/mod_dahdi_codec/mod_dahdi_codec.c

index 03d89635e148be6b9e34d6d78d36f55f3942cfbe..137579a72ece2331164a3406e0b8a5b7351b2d83 100644 (file)
@@ -126,7 +126,7 @@ static switch_status_t init_encoder(switch_codec_t *codec)
        fmts.dstfmt = (codec->implementation->ianacode == CODEC_G729_IANA_CODE) 
                ? DAHDI_FORMAT_G729A : DAHDI_FORMAT_G723_1;
        context->encoding_fd = switch_dahdi_get_transcoder(&fmts);
-       if (context->decoding_fd < 0) {
+       if (context->encoding_fd < 0) {
 #ifdef DEBUG_DAHDI_CODEC
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "encoding requested and denied with %d/%d.\n",
                                                  fmts.srcfmt, fmts.dstfmt);