- fix potential problems with builds - size of some structures depends on #define in projects. But #define can be different for app and library (for example) - it will result in strange crashes. Fixed.
This commit is contained in:
parent
11db9b7450
commit
e8963264e9
|
|
@ -10,9 +10,7 @@
|
||||||
# include "jrtplib/src/rtppacket.h"
|
# include "jrtplib/src/rtppacket.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(USE_NULL_UUID)
|
#include "HL_Uuid.h"
|
||||||
# include "HL_Uuid.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#include "HL_InternetAddress.h"
|
#include "HL_InternetAddress.h"
|
||||||
|
|
@ -82,9 +80,7 @@ struct MediaStreamId
|
||||||
InternetAddress mDestination;
|
InternetAddress mDestination;
|
||||||
uint32_t mSSRC = 0;
|
uint32_t mSSRC = 0;
|
||||||
bool mSsrcIsId = true;
|
bool mSsrcIsId = true;
|
||||||
#if !defined(USE_NULL_UUID)
|
|
||||||
Uuid mLinkId;
|
Uuid mLinkId;
|
||||||
#endif
|
|
||||||
bool operator < (const MediaStreamId& s2) const;
|
bool operator < (const MediaStreamId& s2) const;
|
||||||
bool operator == (const MediaStreamId& right) const;
|
bool operator == (const MediaStreamId& right) const;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,10 @@ public:
|
||||||
bool operator < (const Uuid& right) const;
|
bool operator < (const Uuid& right) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
#if defined(USE_NULL_UUID)
|
||||||
|
unsigned char mUuid[16];
|
||||||
|
#else
|
||||||
|
|
||||||
#if defined(TARGET_LINUX) || defined(TARGET_OSX)
|
#if defined(TARGET_LINUX) || defined(TARGET_OSX)
|
||||||
uuid_t mUuid;
|
uuid_t mUuid;
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -29,6 +33,7 @@ protected:
|
||||||
#if defined(TARGET_ANDROID)
|
#if defined(TARGET_ANDROID)
|
||||||
// Stub only
|
// Stub only
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,10 +69,7 @@ Statistics::Statistics()
|
||||||
mReceivedRtcp(0), mSentRtcp(0), mDuplicatedRtp(0), mOldRtp(0), mIllegalRtp(0),
|
mReceivedRtcp(0), mSentRtcp(0), mDuplicatedRtp(0), mOldRtp(0), mIllegalRtp(0),
|
||||||
mPacketLoss(0), mJitter(0.0), mAudioTime(0), mSsrc(0)
|
mPacketLoss(0), mJitter(0.0), mAudioTime(0), mSsrc(0)
|
||||||
{
|
{
|
||||||
#if defined(USE_AMR_CODEC)
|
|
||||||
mBitrateSwitchCounter = 0;
|
mBitrateSwitchCounter = 0;
|
||||||
#endif
|
|
||||||
|
|
||||||
memset(mLoss, 0, sizeof mLoss);
|
memset(mLoss, 0, sizeof mLoss);
|
||||||
|
|
||||||
// It is to keep track of statistics instance via grep | wc -l
|
// It is to keep track of statistics instance via grep | wc -l
|
||||||
|
|
|
||||||
|
|
@ -117,9 +117,8 @@ public:
|
||||||
uint16_t mSsrc; // Last known SSRC ID in a RTP stream
|
uint16_t mSsrc; // Last known SSRC ID in a RTP stream
|
||||||
ice::NetworkAddress mRemotePeer; // Last known remote RTP address
|
ice::NetworkAddress mRemotePeer; // Last known remote RTP address
|
||||||
|
|
||||||
#if defined(USE_AMR_CODEC)
|
// AMR codec bitrate switch counter
|
||||||
int mBitrateSwitchCounter;
|
int mBitrateSwitchCounter;
|
||||||
#endif
|
|
||||||
|
|
||||||
std::string mCodecName;
|
std::string mCodecName;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue