完善判断逻辑

This commit is contained in:
xiongziliang 2019-11-21 16:34:18 +08:00
parent 54f2c0b53c
commit ab97486200

View File

@ -87,7 +87,7 @@ private:
//如果超过这个时间还未获取成功那么会强制触发onPlayResult事件(虽然此时有些track还未初始化成功) //如果超过这个时间还未获取成功那么会强制触发onPlayResult事件(虽然此时有些track还未初始化成功)
void onPlayResult(const SockException &ex) override { void onPlayResult(const SockException &ex) override {
//isInited判断条件无超时 //isInited判断条件无超时
if(_parser->isInited(0)){ if(ex || _parser->isInited(0)){
//已经初始化成功说明sdp里面有完善的信息 //已经初始化成功说明sdp里面有完善的信息
PlayerImp<RtspPlayer,RtspDemuxer>::onPlayResult(ex); PlayerImp<RtspPlayer,RtspDemuxer>::onPlayResult(ex);
}else{ }else{