diff --git a/src/Rtmp/RtmpMediaSource.h b/src/Rtmp/RtmpMediaSource.h index e0f80be0..f842211f 100644 --- a/src/Rtmp/RtmpMediaSource.h +++ b/src/Rtmp/RtmpMediaSource.h @@ -53,7 +53,7 @@ public: typedef std::shared_ptr Ptr; typedef RingBuffer 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(ringSize)) { } diff --git a/src/Rtmp/RtmpToRtspMediaSource.h b/src/Rtmp/RtmpToRtspMediaSource.h index f4ad7d98..d0b8d4ea 100644 --- a/src/Rtmp/RtmpToRtspMediaSource.h +++ b/src/Rtmp/RtmpToRtspMediaSource.h @@ -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(vhost, app, id, bEnableHls, bEnableMp4); } virtual ~RtmpToRtspMediaSource(){} diff --git a/src/Rtsp/RtspMediaSource.h b/src/Rtsp/RtspMediaSource.h index 58a698a5..93f3460d 100644 --- a/src/Rtsp/RtspMediaSource.h +++ b/src/Rtsp/RtspMediaSource.h @@ -55,7 +55,7 @@ public: typedef std::shared_ptr Ptr; typedef RingBuffer 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(ringSize)) { } diff --git a/src/Rtsp/RtspToRtmpMediaSource.h b/src/Rtsp/RtspToRtmpMediaSource.h index 7eb1cde3..ed55ccb0 100644 --- a/src/Rtsp/RtspToRtmpMediaSource.h +++ b/src/Rtsp/RtspToRtmpMediaSource.h @@ -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(vhost, app, id, bEnableHls, bEnableMp4); }