提交 67916bcf authored 作者: Mathieu Rene's avatar Mathieu Rene

MODFORM-35

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14531 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 ae0bf2cd
...@@ -183,7 +183,7 @@ static switch_status_t engage_device(portaudio_stream_source_t *source,int resta ...@@ -183,7 +183,7 @@ static switch_status_t engage_device(portaudio_stream_source_t *source,int resta
switch_assert(source->read_codec.implementation); switch_assert(source->read_codec.implementation);
if (!switch_core_codec_ready(&source->write_codec) { if (!switch_core_codec_ready(&source->write_codec)) {
if (switch_core_codec_init(&source->write_codec, if (switch_core_codec_init(&source->write_codec,
"L16", "L16",
NULL, NULL,
...@@ -344,7 +344,7 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void ...@@ -344,7 +344,7 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void
switch_core_codec_destroy(&source->read_codec); switch_core_codec_destroy(&source->read_codec);
switch_core_codec_destroy(&source->write_codec); switch_core_codec_destroy(&source->write_codec);
} }
if (switch_core_codec_ready(&source->write_codec) { if (switch_core_codec_ready(&source->write_codec)) {
switch_core_codec_destroy(&source->write_codec); switch_core_codec_destroy(&source->write_codec);
} }
switch_mutex_unlock(source->device_lock); switch_mutex_unlock(source->device_lock);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论