[asterisk-commits] kpfleming: trunk r38441 - /trunk/channel.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Jul 28 12:58:54 MST 2006


Author: kpfleming
Date: Fri Jul 28 14:58:53 2006
New Revision: 38441

URL: http://svn.digium.com/view/asterisk?rev=38441&view=rev
Log:
just for fun, let's lock the whisper buffer for writing AND reading :-)

Modified:
    trunk/channel.c

Modified: trunk/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/channel.c?rev=38441&r1=38440&r2=38441&view=diff
==============================================================================
--- trunk/channel.c (original)
+++ trunk/channel.c Fri Jul 28 14:58:53 2006
@@ -2469,8 +2469,10 @@
 						.samples = f->samples,
 					};
 
+					ast_mutex_lock(&chan->whisper->lock);
 					if (ast_slinfactory_read(&chan->whisper->sf, buf, f->samples))
 						ast_frame_slinear_sum(f, &whisper);
+					ast_mutex_unlock(&chan->whisper->lock);
 				}
 			}
 



More information about the asterisk-commits mailing list