提交 ade33ae4 authored 作者: Mike Jerris's avatar Mike Jerris

FS-9710: fix build in passthrough mode

上级 cb8eb972
...@@ -494,6 +494,10 @@ static switch_status_t switch_amr_control(switch_codec_t *codec, ...@@ -494,6 +494,10 @@ static switch_status_t switch_amr_control(switch_codec_t *codec,
switch_codec_control_type_t *rtype, switch_codec_control_type_t *rtype,
void **ret_data) 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; struct amr_context *context = codec->private_info;
switch(cmd) { switch(cmd) {
...@@ -546,6 +550,7 @@ static switch_status_t switch_amr_control(switch_codec_t *codec, ...@@ -546,6 +550,7 @@ static switch_status_t switch_amr_control(switch_codec_t *codec,
} }
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
#endif
} }
static char *generate_fmtp(switch_memory_pool_t *pool , int octet_align) static char *generate_fmtp(switch_memory_pool_t *pool , int octet_align)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论