完善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

@@ -172,7 +172,7 @@ void MediaReader::startReadMP4() {
return true;
}
bool MediaReader::close(MediaSource &sender,bool force){
if(!force && _mediaMuxer->readerCount() != 0 ){
if(!_mediaMuxer || (!force && _mediaMuxer->readerCount() != 0)){
return false;
}
_timer.reset();