[svn-commits] file: trunk r128198 - /trunk/main/rtp.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Jul 5 14:52:54 CDT 2008


Author: file
Date: Sat Jul  5 14:52:54 2008
New Revision: 128198

URL: http://svn.digium.com/view/asterisk?view=rev&rev=128198
Log:
Make this actually evaluate how it was intended to be.

Modified:
    trunk/main/rtp.c

Modified: trunk/main/rtp.c
URL: http://svn.digium.com/view/asterisk/trunk/main/rtp.c?view=diff&rev=128198&r1=128197&r2=128198
==============================================================================
--- trunk/main/rtp.c (original)
+++ trunk/main/rtp.c Sat Jul  5 14:52:54 2008
@@ -2646,13 +2646,13 @@
 	case AST_RTP_TXJITTER:
 		return (unsigned int) (rtp->rxjitter * 100.0);
 	case AST_RTP_RXJITTER:
-		return (unsigned int) rtp->rtcp ? (rtp->rtcp->reported_jitter / (unsigned int) 65536.0) : 0;
+		return (unsigned int) (rtp->rtcp ? (rtp->rtcp->reported_jitter / (unsigned int) 65536.0) : 0);
 	case AST_RTP_RXPLOSS:
 		return rtp->rtcp ? (rtp->rtcp->expected_prior - rtp->rtcp->received_prior) : 0;
 	case AST_RTP_TXPLOSS:
 		return rtp->rtcp ? rtp->rtcp->reported_lost : 0;
 	case AST_RTP_RTT:
-		return (unsigned int) rtp->rtcp ? rtp->rtcp->rtt * 100 : 0;
+		return (unsigned int) (rtp->rtcp ? (rtp->rtcp->rtt * 100) : 0);
 	}
 	return 0;	/* To make the compiler happy */
 }




More information about the svn-commits mailing list