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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 1 00:22:00 CDT 2011


Author: irroot
Date: Wed Jun  1 00:21:54 2011
New Revision: 321526

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=321526
Log:
Only change formats when bridged

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=321526&r1=321525&r2=321526
==============================================================================
--- team/irroot/distrotech-customers-1.8/channels/chan_local.c (original)
+++ team/irroot/distrotech-customers-1.8/channels/chan_local.c Wed Jun  1 00:21:54 2011
@@ -539,7 +539,7 @@
 		/* fixup formats nativeformat has changed we must adjust
 		 * ast is p->owner and is locked here*/
 		bridge = ast_bridged_channel(ast);
-		if (!(bridge->nativeformats & ast->nativeformats)) {
+		if (bridge && !(bridge->nativeformats & ast->nativeformats)) {
 			ast->nativeformats = bridge->nativeformats;
 			ast_set_read_format(ast, ast->readformat);
 			ast_set_write_format(ast, ast->writeformat);




More information about the asterisk-commits mailing list