[asterisk-commits] irroot: branch irroot/distrotech-customers-trunk r338490 - /team/irroot/distr...

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


Author: irroot
Date: Thu Sep 29 09:25:22 2011
New Revision: 338490

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

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

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




More information about the asterisk-commits mailing list