兼容一些奇怪sdp的rtsp url

This commit is contained in:
xiongziliang
2019-11-21 16:31:50 +08:00
parent e7bd5a4174
commit 54f2c0b53c
5 changed files with 36 additions and 22 deletions

View File

@@ -236,18 +236,10 @@ protected:
}
void onPlayResult(const SockException &ex) override {
if(!_playResultCB){
return;
}
if(ex){
//播放失败,则立即回调
if(_playResultCB) {
_playResultCB(ex);
_playResultCB = nullptr;
return;
}
//播放成功
_playResultCB(ex);
_playResultCB = nullptr;
}
void onResume() override{