[asterisk-commits] irroot: branch irroot/distrotech-customers-1.8 r338488 - /team/irroot/distrot...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 29 09:24:31 CDT 2011


Author: irroot
Date: Thu Sep 29 09:24:27 2011
New Revision: 338488

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=338488
Log:
Remove undeeded locking in follow codecs patch

Modified:
    team/irroot/distrotech-customers-1.8/channels/chan_local.c

Modified: team/irroot/distrotech-customers-1.8/channels/chan_local.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/distrotech-customers-1.8/channels/chan_local.c?view=diff&rev=338488&r1=338487&r2=338488
==============================================================================
--- team/irroot/distrotech-customers-1.8/channels/chan_local.c (original)
+++ team/irroot/distrotech-customers-1.8/channels/chan_local.c Thu Sep 29 09:24:27 2011
@@ -613,9 +613,7 @@
 		if (p->chan && bridge && (bridge != p->chan) && !(bridge->nativeformats & ast->nativeformats)) {
 			while (lockcheck && ast_channel_trylock(p->chan)) {
 				lockcheck--;
-				ao2_unlock(p);
 				usleep(1000);
-				ao2_lock(p);
 			}
 			if (lockcheck) {
 				ast->nativeformats = bridge->nativeformats;




More information about the asterisk-commits mailing list