From 35fd682c9a0c3eca5473e3b42aae02a37fca9bfa Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Tue, 3 Jul 2018 17:01:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8DZLToolKit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZLToolKit | 2 +- src/RTP/RtpMaker.h | 1 + src/Rtsp/RtspMediaSource.h | 2 +- src/Rtsp/RtspPlayer.cpp | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) 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();