diff --git a/ZLToolKit b/ZLToolKit index f2633631..7dbbfc28 160000 --- a/ZLToolKit +++ b/ZLToolKit @@ -1 +1 @@ -Subproject commit f263363147008c9c4642aa1101d76abd21c43e87 +Subproject commit 7dbbfc28b5dce9da4a0b27e63fdd04fbf0e6a691 diff --git a/src/RTP/RtpMaker.h b/src/RTP/RtpMaker.h index c0a98386..42ca212d 100644 --- a/src/RTP/RtpMaker.h +++ b/src/RTP/RtpMaker.h @@ -51,6 +51,7 @@ public: m_iMtuSize = iMtuSize; m_ui8PlayloadType = ui8PlayloadType; m_ui8Interleaved = ui8Interleaved; + m_pktPool.setSize(64); } virtual ~RtpMaker() { } diff --git a/src/Rtsp/RtspMediaSource.h b/src/Rtsp/RtspMediaSource.h index ea1f4bb6..30850ec8 100644 --- a/src/Rtsp/RtspMediaSource.h +++ b/src/Rtsp/RtspMediaSource.h @@ -54,7 +54,7 @@ namespace Rtsp { class RtspMediaSource: public MediaSource { public: - typedef ResourcePool PoolType; + typedef ResourcePool PoolType; typedef std::shared_ptr Ptr; typedef RingBuffer RingType; diff --git a/src/Rtsp/RtspPlayer.cpp b/src/Rtsp/RtspPlayer.cpp index 3b21d86f..08baf900 100644 --- a/src/Rtsp/RtspPlayer.cpp +++ b/src/Rtsp/RtspPlayer.cpp @@ -54,6 +54,7 @@ const char kRtspMd5Nonce[] = "rtsp_md5_nonce"; const char kRtspRealm[] = "rtsp_realm"; RtspPlayer::RtspPlayer(void){ + m_pktPool.setSize(64); } RtspPlayer::~RtspPlayer(void) { teardown();