完善获取媒体读取器个数方法

This commit is contained in:
xiongziliang
2019-05-27 16:09:29 +08:00
parent 0fa2452657
commit 3917b6451c
7 changed files with 24 additions and 4 deletions

View File

@@ -716,7 +716,7 @@ bool RtspSession::handleReq_Play(const Parser &parser) {
auto iStartTime = 1000 * atof(strStart.data());
InfoL << "rtsp seekTo(ms):" << iStartTime;
useBuf = !pMediaSrc->seekTo(iStartTime);
}else if(pMediaSrc->getRing()->readerCount() == 0){
}else if(pMediaSrc->readerCount() == 0){
//第一个消费者
pMediaSrc->seekTo(0);
}