diff options
author | Liong Sauw Ming <ming@teluu.com> | 2014-09-09 04:25:03 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2014-09-09 04:25:03 +0000 |
commit | 1b25660f4fcab13f83c4b68cf92e21e2833bc32b (patch) | |
tree | a86289351a90c162d450eb0614445cb5b85c2c9a /pjsip | |
parent | 6e4021b4bb8ff06b0821519da73e59163d49c7dd (diff) |
Re #1784: Revert API change
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4919 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r-- | pjsip/include/pjsua2/call.hpp | 13 | ||||
-rw-r--r-- | pjsip/src/pjsua2/call.cpp | 4 |
2 files changed, 12 insertions, 5 deletions
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 @@ -86,6 +86,15 @@ public: }; /** + * Types of loss detected. + */ +struct LossType +{ + unsigned burst; /**< Burst/sequential packet lost detected */ + unsigned random; /**< Random packet lost detected. */ +}; + +/** * Unidirectional RTP stream statistics. */ struct RtcpStreamStat @@ -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); } |