From 3204dafd51c11585cc58803e5220dfc6cd9ae210 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 29 Dec 2018 17:46:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=AE=A1=E7=AE=97GOP?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtmp/RtmpMediaSource.h | 2 +- src/Rtmp/RtmpToRtspMediaSource.h | 2 +- src/Rtsp/RtspMediaSource.h | 2 +- src/Rtsp/RtspToRtmpMediaSource.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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); }