From eabb673005002cba5a881d25d514238b2e78176e Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Mon, 27 May 2019 21:37:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E4=BA=BA=E8=A7=82=E7=9C=8B=E5=BB=B6?= =?UTF-8?q?=E6=97=B6=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtmp/RtmpMediaSource.h | 2 +- src/Rtsp/RtspMediaSource.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Rtmp/RtmpMediaSource.h b/src/Rtmp/RtmpMediaSource.h index ea868703..396b65fb 100644 --- a/src/Rtmp/RtmpMediaSource.h +++ b/src/Rtmp/RtmpMediaSource.h @@ -127,9 +127,9 @@ public: private: void onReaderChanged(int size){ + _readerTicker.resetTime(); if(size != 0 || readerCount() != 0){ //还有消费者正在观看该流,我们记录最后一次活动时间 - _readerTicker.resetTime(); _asyncEmitNoneReader = false; return; } diff --git a/src/Rtsp/RtspMediaSource.h b/src/Rtsp/RtspMediaSource.h index 56743f85..c5a321d2 100644 --- a/src/Rtsp/RtspMediaSource.h +++ b/src/Rtsp/RtspMediaSource.h @@ -143,9 +143,9 @@ public: } private: void onReaderChanged(int size){ + _readerTicker.resetTime(); if(size != 0 || readerCount() != 0){ //还有消费者正在观看该流,我们记录最后一次活动时间 - _readerTicker.resetTime(); _asyncEmitNoneReader = false; return; }