diff --git a/src/mod/formats/mod_portaudio_stream/mod_portaudio_stream.c b/src/mod/formats/mod_portaudio_stream/mod_portaudio_stream.c index 0e6eec9e46..fb15ba976c 100644 --- a/src/mod/formats/mod_portaudio_stream/mod_portaudio_stream.c +++ b/src/mod/formats/mod_portaudio_stream/mod_portaudio_stream.c @@ -183,7 +183,7 @@ static switch_status_t engage_device(portaudio_stream_source_t *source,int resta 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, "L16", NULL, @@ -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->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_mutex_unlock(source->device_lock);