整理优化代码

This commit is contained in:
xiongziliang
2019-06-28 16:48:02 +08:00
parent 3e84142366
commit bf39cf3e33
29 changed files with 271 additions and 256 deletions

View File

@@ -169,8 +169,8 @@ void RtspPusher::sendAnnounce() {
throw std::runtime_error("the media source was released");
}
//解析sdp
_sdpAttr.load(src->getSdp());
_aTrackInfo = _sdpAttr.getAvailableTrack();
_sdpParser.load(src->getSdp());
_aTrackInfo = _sdpParser.getAvailableTrack();
if (_aTrackInfo.empty()) {
throw std::runtime_error("无有效的Sdp Track");