]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9710: fix build in passthrough mode
authorMike Jerris <mike@jerris.com>
Wed, 9 Nov 2016 20:46:16 +0000 (14:46 -0600)
committerMike Jerris <mike@jerris.com>
Wed, 9 Nov 2016 20:46:16 +0000 (14:46 -0600)
src/mod/codecs/mod_amr/mod_amr.c

index af716a08ac95dfd39b9c0e94a68f7cad550eac92..c111d8d04d68ab2aadd20d812dccb3dfa4fe4cd5 100644 (file)
@@ -494,6 +494,10 @@ static switch_status_t switch_amr_control(switch_codec_t *codec,
                                                                                   switch_codec_control_type_t *rtype,
                                                                                   void **ret_data)
 {
+#ifdef AMR_PASSTHROUGH
+       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "This codec is only usable in passthrough mode!\n");
+       return SWITCH_STATUS_FALSE;
+#else
        struct amr_context *context = codec->private_info;
 
        switch(cmd) {
@@ -546,6 +550,7 @@ static switch_status_t switch_amr_control(switch_codec_t *codec,
        } 
        
        return SWITCH_STATUS_SUCCESS;
+#endif
 }
 
 static char *generate_fmtp(switch_memory_pool_t *pool , int octet_align)