自动计算GOP缓存大小

This commit is contained in:
xiongziliang
2018-12-29 17:46:55 +08:00
parent 5b5db04543
commit 3204dafd51
4 changed files with 4 additions and 4 deletions

View File

@@ -53,7 +53,7 @@ public:
typedef std::shared_ptr<RtmpMediaSource> Ptr;
typedef RingBuffer<RtmpPacket::Ptr> RingType;
RtmpMediaSource(const string &vhost,const string &strApp, const string &strId,int ringSize = 32) :
RtmpMediaSource(const string &vhost,const string &strApp, const string &strId,int ringSize = 0) :
MediaSource(RTMP_SCHEMA,vhost,strApp,strId),
_pRing(new RingBuffer<RtmpPacket::Ptr>(ringSize)) {
}