Revision
14531
Author
mrene
Date
2009-08-15 00:58:29 -0500 (Sat, 15 Aug 2009)

Log Message

MODFORM-35

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/formats/mod_portaudio_stream/mod_portaudio_stream.c (14530 => 14531)


--- freeswitch/trunk/src/mod/formats/mod_portaudio_stream/mod_portaudio_stream.c	2009-08-15 04:41:29 UTC (rev 14530)
+++ freeswitch/trunk/src/mod/formats/mod_portaudio_stream/mod_portaudio_stream.c	2009-08-15 05:58:29 UTC (rev 14531)
@@ -183,7 +183,7 @@
 
 	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 @@
 		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);