rtsp推流拉流转发时修整sdp

rtsp推流修整时间戳
This commit is contained in:
xiongziliang
2019-08-22 16:05:35 +08:00
parent bf7363714d
commit fb1d7dd5a6
10 changed files with 29 additions and 26 deletions

View File

@@ -219,14 +219,14 @@ void RtspPlayer::handleResDESCRIBE(const Parser& parser) {
_strContentBase.pop_back();
}
SdpParser sdpParser(parser.Content());
//解析sdp
_sdpParser.load(parser.Content());
_aTrackInfo = _sdpParser.getAvailableTrack();
_aTrackInfo = sdpParser.getAvailableTrack();
if (_aTrackInfo.empty()) {
throw std::runtime_error("无有效的Sdp Track");
}
if (!onCheckSDP(parser.Content(), _sdpParser)) {
if (!onCheckSDP(sdpParser.toString())) {
throw std::runtime_error("onCheckSDP faied");
}