From 1b25660f4fcab13f83c4b68cf92e21e2833bc32b Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Tue, 9 Sep 2014 04:25:03 +0000 Subject: Re #1784: Revert API change git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4919 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/include/pjsua2/call.hpp | 13 ++++++++++--- pjsip/src/pjsua2/call.cpp | 4 ++-- 2 files changed, 12 insertions(+), 5 deletions(-) (limited to 'pjsip') diff --git a/pjsip/include/pjsua2/call.hpp b/pjsip/include/pjsua2/call.hpp index e6e680a0..510ad64d 100644 --- a/pjsip/include/pjsua2/call.hpp +++ b/pjsip/include/pjsua2/call.hpp @@ -85,6 +85,15 @@ public: void fromPj(const pj_math_stat &prm); }; +/** + * Types of loss detected. + */ +struct LossType +{ + unsigned burst; /**< Burst/sequential packet lost detected */ + unsigned random; /**< Random packet lost detected. */ +}; + /** * Unidirectional RTP stream statistics. */ @@ -101,9 +110,7 @@ struct RtcpStreamStat MathStat lossPeriodUsec; /**< Loss period statistics */ - /**< Types of loss detected. */ - unsigned burst; /**< Burst/sequential packet lost detected */ - unsigned random; /**< Random packet lost detected. */ + LossType lossType; /**< Types of loss detected. */ MathStat jitterUsec; /**< Jitter statistics */ diff --git a/pjsip/src/pjsua2/call.cpp b/pjsip/src/pjsua2/call.cpp index afc4d3d9..1e4e72f3 100644 --- a/pjsip/src/pjsua2/call.cpp +++ b/pjsip/src/pjsua2/call.cpp @@ -56,8 +56,8 @@ void RtcpStreamStat::fromPj(const pjmedia_rtcp_stream_stat &prm) this->reorder = prm.loss; this->dup = prm.dup; this->lossPeriodUsec.fromPj(prm.loss_period); - this->burst = prm.loss_type.burst; - this->random = prm.loss_type.random; + this->lossType.burst = prm.loss_type.burst; + this->lossType.random = prm.loss_type.random; this->jitterUsec.fromPj(prm.jitter); } -- cgit v1.2.3