mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-05 02:38:10 +08:00
支持自定义环形缓冲大小
This commit is contained in:
@@ -53,9 +53,9 @@ public:
|
||||
typedef std::shared_ptr<RtmpMediaSource> Ptr;
|
||||
typedef RingBuffer<RtmpPacket::Ptr> RingType;
|
||||
|
||||
RtmpMediaSource(const string &vhost,const string &strApp, const string &strId) :
|
||||
RtmpMediaSource(const string &vhost,const string &strApp, const string &strId,int ringSize = 32) :
|
||||
MediaSource(RTMP_SCHEMA,vhost,strApp,strId),
|
||||
_pRing(new RingBuffer<RtmpPacket::Ptr>()) {
|
||||
_pRing(new RingBuffer<RtmpPacket::Ptr>(ringSize)) {
|
||||
}
|
||||
virtual ~RtmpMediaSource() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user