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

Freeswitch SVN anthm at freeswitch.org
Mon Apr 21 09:48:36 EDT 2008


Author: anthm
Date: Mon Apr 21 09:48:35 2008
New Revision: 8130

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

Log:
fix locking issue

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	Mon Apr 21 09:48:35 2008
@@ -539,9 +539,10 @@
 		return SWITCH_STATUS_SUCCESS;
 	}
 
- get_samples:
 	switch_mutex_lock(globals.device_lock);
 
+ get_samples:
+
 	if ((samples = ReadAudioStream(globals.audio_stream, globals.read_frame.data, 
 								   globals.read_codec.implementation->samples_per_frame, 
 								   &globals.timer)) == 0) {



More information about the Freeswitch-svn mailing list