[Freeswitch-svn] [commit] r2580 - freeswitch/trunk/src/mod/codecs/mod_g723_1
Freeswitch SVN
brian at freeswitch.org
Fri Sep 8 12:51:35 EDT 2006
Author: brian
Date: Fri Sep 8 12:51:35 2006
New Revision: 2580
Modified:
freeswitch/trunk/src/mod/codecs/mod_g723_1/mod_g723_1.c
Log:
oops ifdef on these
Modified: freeswitch/trunk/src/mod/codecs/mod_g723_1/mod_g723_1.c
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_g723_1/mod_g723_1.c (original)
+++ freeswitch/trunk/src/mod/codecs/mod_g723_1/mod_g723_1.c Fri Sep 8 12:51:35 2006
@@ -63,7 +63,7 @@
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 @@
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 @@
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
More information about the Freeswitch-svn
mailing list