添加无人观看主动断开事件

This commit is contained in:
xiongziliang
2019-05-27 18:39:43 +08:00
parent 3917b6451c
commit b0bf216bc2
21 changed files with 213 additions and 52 deletions

View File

@@ -91,7 +91,7 @@ public:
}
int readerCount() override {
return RtmpMediaSource::readerCount() + _rtspMuxer->readerCount();
return RtmpMediaSource::readerCount() + (_rtspMuxer ? _rtspMuxer->readerCount() : 0);
}
private:
RtmpDemuxer::Ptr _rtmpDemuxer;