[asterisk-scf-commits] asterisk-scf/release/media_rtp_pjmedia.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Thu May 19 13:39:18 CDT 2011
branch "master" has been updated
via 103929b269e3391fa36b4d34c81ca96efa5eaaef (commit)
from d77ecdc4c1ed57239a797b59be19f9841085cbe4 (commit)
Summary of changes:
src/RTPSession.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 103929b269e3391fa36b4d34c81ca96efa5eaaef
Author: Joshua Colp <jcolp at digium.com>
Date: Thu May 19 15:40:47 2011 -0300
Fix some incorrect assertions. I always screw these up.
diff --git a/src/RTPSession.cpp b/src/RTPSession.cpp
index ae9423c..7bbf164 100644
--- a/src/RTPSession.cpp
+++ b/src/RTPSession.cpp
@@ -144,7 +144,7 @@ RTPSessionImpl::RTPSessionImpl(const Ice::ObjectAdapterPtr& adapter, const RTPSe
/* Create an endpoint in pjmedia for our media. */
pj_status_t status = pjmedia_endpt_create(factory, NULL, configurationService->getWorkerThreadCount(), &mImpl->mEndpoint);
- assert(status != PJ_SUCCESS);
+ assert(status == PJ_SUCCESS);
int af = (params->ipv6 == true) ? pj_AF_INET6() : pj_AF_INET();
int minimumPort = configurationService->getStartPort();
@@ -193,7 +193,7 @@ RTPSessionImpl::RTPSessionImpl(const Ice::ObjectAdapterPtr& adapter, pj_pool_fac
pj_status_t status = pjmedia_endpt_create(factory, NULL, configurationService->getWorkerThreadCount(), &mImpl->mEndpoint);
- assert(status != PJ_SUCCESS);
+ assert(status == PJ_SUCCESS);
int af = (ipv6 == true) ? pj_AF_INET6() : pj_AF_INET();
-----------------------------------------------------------------------
--
asterisk-scf/release/media_rtp_pjmedia.git
More information about the asterisk-scf-commits
mailing list