提高EasyDarwin的rtsp推流兼容性

This commit is contained in:
xiongziliang 2019-09-10 17:08:24 +08:00
parent ae64bc9bcb
commit 7701a883e3

View File

@ -250,7 +250,7 @@ void RtspSession::handleReq_ANNOUNCE(const Parser &parser) {
auto full_url = parser.FullUrl(); auto full_url = parser.FullUrl();
if(end_of(full_url,".sdp")){ if(end_of(full_url,".sdp")){
//去除.sdp后缀防止EasyDarwin推流器强制添加.sdp后缀 //去除.sdp后缀防止EasyDarwin推流器强制添加.sdp后缀
full_url = full_url.substr(0,full_url.length() - 3); full_url = full_url.substr(0,full_url.length() - 4);
_mediaInfo.parse(full_url); _mediaInfo.parse(full_url);
} }