提交 2dc6c084 authored 作者: Anthony Minessale's avatar Anthony Minessale

FSCORE-579

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17105 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 c0f0a6c3
...@@ -468,13 +468,16 @@ SWITCH_DECLARE(switch_status_t) switch_core_codec_copy(switch_codec_t *codec, sw ...@@ -468,13 +468,16 @@ SWITCH_DECLARE(switch_status_t) switch_core_codec_copy(switch_codec_t *codec, sw
if ((status = switch_core_new_memory_pool(&new_codec->memory_pool)) != SWITCH_STATUS_SUCCESS) { if ((status = switch_core_new_memory_pool(&new_codec->memory_pool)) != SWITCH_STATUS_SUCCESS) {
return status; return status;
} }
switch_set_flag(new_codec, SWITCH_CODEC_FLAG_FREE_POOL);
} }
new_codec->codec_interface = codec->codec_interface; new_codec->codec_interface = codec->codec_interface;
new_codec->implementation = codec->implementation; new_codec->implementation = codec->implementation;
new_codec->flags = codec->flags; new_codec->flags = codec->flags;
if (!pool) {
switch_set_flag(new_codec, SWITCH_CODEC_FLAG_FREE_POOL);
}
if (codec->fmtp_in) { if (codec->fmtp_in) {
new_codec->fmtp_in = switch_core_strdup(new_codec->memory_pool, codec->fmtp_in); new_codec->fmtp_in = switch_core_strdup(new_codec->memory_pool, codec->fmtp_in);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论