[Freeswitch-svn] [commit] r9372 - freeswitch/trunk/src/mod/endpoints/mod_portaudio

Freeswitch SVN anthm at freeswitch.org
Wed Aug 27 11:48:04 EDT 2008


Author: anthm
Date: Wed Aug 27 11:48:03 2008
New Revision: 9372

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c

Log:
fix cpu race on inbound call to pa when no ring file is set

Modified: freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c	Wed Aug 27 11:48:03 2008
@@ -266,6 +266,8 @@
 				if (globals.ring_stream) {
 					WriteAudioStream(globals.ring_stream, abuf, (long) olen, &globals.timer);
 				}
+			} else {
+				switch_yield(10000);
 			}
 		}
 		switch_clear_flag_locked((&globals), GFLAG_RING);



More information about the Freeswitch-svn mailing list