mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
自动计算GOP缓存大小
This commit is contained in:
parent
5b5db04543
commit
3204dafd51
@ -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)) {
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ public:
|
||||
const string &id,
|
||||
bool bEnableHls = true,
|
||||
bool bEnableMp4 = false,
|
||||
int ringSize = 32):RtmpMediaSource(vhost, app, id,ringSize){
|
||||
int ringSize = 0):RtmpMediaSource(vhost, app, id,ringSize){
|
||||
_recorder = std::make_shared<MediaRecorder>(vhost, app, id, bEnableHls, bEnableMp4);
|
||||
}
|
||||
virtual ~RtmpToRtspMediaSource(){}
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
typedef std::shared_ptr<RtspMediaSource> Ptr;
|
||||
typedef RingBuffer<RtpPacket::Ptr> RingType;
|
||||
|
||||
RtspMediaSource(const string &strVhost,const string &strApp, const string &strId,int ringSize = 32) :
|
||||
RtspMediaSource(const string &strVhost,const string &strApp, const string &strId,int ringSize = 0) :
|
||||
MediaSource(RTSP_SCHEMA,strVhost,strApp,strId),
|
||||
_pRing(new RingBuffer<RtpPacket::Ptr>(ringSize)) {
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ public:
|
||||
const string &id,
|
||||
bool bEnableHls = true,
|
||||
bool bEnableMp4 = false,
|
||||
int ringSize = 32) : RtspMediaSource(vhost, app, id,ringSize) {
|
||||
int ringSize = 0) : RtspMediaSource(vhost, app, id,ringSize) {
|
||||
_recorder = std::make_shared<MediaRecorder>(vhost, app, id, bEnableHls, bEnableMp4);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user