精简代码

This commit is contained in:
xiongziliang
2018-10-26 10:12:37 +08:00
parent 6fe90fe4ba
commit c556122881
3 changed files with 21 additions and 26 deletions

View File

@@ -280,7 +280,7 @@ void RtspPlayer::handleResDESCRIBE(const Parser& parser) {
_aTrackInfo = _sdpAttr.getAvailableTrack();
if (_aTrackInfo.empty()) {
throw std::runtime_error("解析SDP失败");
throw std::runtime_error("无有效的Sdp Track");
}
if (!onCheckSDP(strSdp, _sdpAttr)) {
throw std::runtime_error("onCheckSDP faied");