完善rtsp服务器错误提示

This commit is contained in:
xiongziliang
2019-05-30 12:14:20 +08:00
parent c8b192fa6e
commit 042981c4e4
4 changed files with 174 additions and 175 deletions

View File

@@ -146,7 +146,7 @@ void PlayerProxy::rePlay(const string &strUrl,int iFailedCnt){
}, getPoller());
}
bool PlayerProxy::close(MediaSource &sender,bool force) {
if(!force && _mediaMuxer->readerCount() != 0){
if(!_mediaMuxer || (!force && _mediaMuxer->readerCount() != 0)){
return false;
}