适配ZLToolKit

This commit is contained in:
xiongziliang 2018-07-03 17:01:56 +08:00
parent 6ae243f459
commit 35fd682c9a
4 changed files with 4 additions and 2 deletions

@ -1 +1 @@
Subproject commit f263363147008c9c4642aa1101d76abd21c43e87 Subproject commit 7dbbfc28b5dce9da4a0b27e63fdd04fbf0e6a691

View File

@ -51,6 +51,7 @@ public:
m_iMtuSize = iMtuSize; m_iMtuSize = iMtuSize;
m_ui8PlayloadType = ui8PlayloadType; m_ui8PlayloadType = ui8PlayloadType;
m_ui8Interleaved = ui8Interleaved; m_ui8Interleaved = ui8Interleaved;
m_pktPool.setSize(64);
} }
virtual ~RtpMaker() { virtual ~RtpMaker() {
} }

View File

@ -54,7 +54,7 @@ namespace Rtsp {
class RtspMediaSource: public MediaSource { class RtspMediaSource: public MediaSource {
public: public:
typedef ResourcePool<RtpPacket, 64> PoolType; typedef ResourcePool<RtpPacket> PoolType;
typedef std::shared_ptr<RtspMediaSource> Ptr; typedef std::shared_ptr<RtspMediaSource> Ptr;
typedef RingBuffer<RtpPacket::Ptr> RingType; typedef RingBuffer<RtpPacket::Ptr> RingType;

View File

@ -54,6 +54,7 @@ const char kRtspMd5Nonce[] = "rtsp_md5_nonce";
const char kRtspRealm[] = "rtsp_realm"; const char kRtspRealm[] = "rtsp_realm";
RtspPlayer::RtspPlayer(void){ RtspPlayer::RtspPlayer(void){
m_pktPool.setSize(64);
} }
RtspPlayer::~RtspPlayer(void) { RtspPlayer::~RtspPlayer(void) {
teardown(); teardown();