[Freeswitch-svn] [commit] r8121 - freeswitch/trunk/src/mod/endpoints/mod_portaudio
Freeswitch SVN
mikej at freeswitch.org
Wed Apr 16 17:43:51 EDT 2008
Author: mikej
Date: Wed Apr 16 17:43:51 2008
New Revision: 8121
Modified:
freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c
Log:
don't hang channels (MODENDP-106)
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 Apr 16 17:43:51 2008
@@ -539,13 +539,12 @@
return SWITCH_STATUS_SUCCESS;
}
- switch_mutex_lock(globals.device_lock);
get_samples:
+ switch_mutex_lock(globals.device_lock);
if ((samples = ReadAudioStream(globals.audio_stream, globals.read_frame.data,
globals.read_codec.implementation->samples_per_frame,
&globals.timer)) == 0) {
- switch_mutex_unlock(globals.device_lock);
switch_yield(1000);
goto get_samples;
} else {
More information about the Freeswitch-svn
mailing list