Commit 35fd682c by xiongziliang

适配ZLToolKit

parent 6ae243f4
Subproject commit f263363147008c9c4642aa1101d76abd21c43e87
Subproject commit 7dbbfc28b5dce9da4a0b27e63fdd04fbf0e6a691
......@@ -51,6 +51,7 @@ public:
m_iMtuSize = iMtuSize;
m_ui8PlayloadType = ui8PlayloadType;
m_ui8Interleaved = ui8Interleaved;
m_pktPool.setSize(64);
}
virtual ~RtpMaker() {
}
......
......@@ -54,7 +54,7 @@ namespace Rtsp {
class RtspMediaSource: public MediaSource {
public:
typedef ResourcePool<RtpPacket, 64> PoolType;
typedef ResourcePool<RtpPacket> PoolType;
typedef std::shared_ptr<RtspMediaSource> Ptr;
typedef RingBuffer<RtpPacket::Ptr> RingType;
......
......@@ -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();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论