mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 12:05:58 +08:00
整理优化代码
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user