[asterisk-commits] jpeeler: trunk r208924 - in /trunk: ./ channels/chan_iax2.c main/translate.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Jul 26 20:20:41 CDT 2009


Author: jpeeler
Date: Sun Jul 26 20:20:37 2009
New Revision: 208924

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=208924
Log:
Merged revisions 208923 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r208923 | jpeeler | 2009-07-26 20:18:31 -0500 (Sun, 26 Jul 2009) | 2 lines
  
  Fix logic errors from 208746
........

Modified:
    trunk/   (props changed)
    trunk/channels/chan_iax2.c
    trunk/main/translate.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/chan_iax2.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=208924&r1=208923&r2=208924
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Sun Jul 26 20:20:37 2009
@@ -4292,7 +4292,7 @@
 		return AST_BRIDGE_FAILED;
 	}
 	/* Put them in native bridge mode */
-	if ((!flags) & (AST_BRIDGE_DTMF_CHANNEL_0 | AST_BRIDGE_DTMF_CHANNEL_1)) {
+	if (!(flags & (AST_BRIDGE_DTMF_CHANNEL_0 | AST_BRIDGE_DTMF_CHANNEL_1))) {
 		iaxs[callno0]->bridgecallno = callno1;
 		iaxs[callno1]->bridgecallno = callno0;
 	}

Modified: trunk/main/translate.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/main/translate.c?view=diff&rev=208924&r1=208923&r2=208924
==============================================================================
--- trunk/main/translate.c (original)
+++ trunk/main/translate.c Sun Jul 26 20:20:37 2009
@@ -855,7 +855,7 @@
 	   destination format. */
 	for (x = 1; src_audio && (x & AST_FORMAT_AUDIO_MASK); x <<= 1) {
 		/* if this is not a desired format, nothing to do */
-		if ((!dest) & x)
+		if (!(dest & x))
 			continue;
 
 		/* if the source is supplying this format, then
@@ -881,7 +881,7 @@
 	   destination format. */
 	for (; src_video && (x & AST_FORMAT_VIDEO_MASK); x <<= 1) {
 		/* if this is not a desired format, nothing to do */
-		if ((!dest) & x)
+		if (!(dest & x))
 			continue;
 
 		/* if the source is supplying this format, then




More information about the asterisk-commits mailing list