兼容一些不规范的播放器

This commit is contained in:
xiongziliang 2019-01-11 10:45:03 +08:00
parent 37c397c4a4
commit b92e837640

View File

@ -535,7 +535,7 @@ inline void RtspSession::send_SessionNotFound() {
} }
bool RtspSession::handleReq_Setup(const Parser &parser) { bool RtspSession::handleReq_Setup(const Parser &parser) {
//处理setup命令该函数可能进入多次 //处理setup命令该函数可能进入多次
auto controlSuffix = parser.FullUrl().substr(_strContentBase.size()); auto controlSuffix = split(parser.Url(),"/").back();// parser.FullUrl().substr(_strContentBase.size());
if(controlSuffix.front() == '/'){ if(controlSuffix.front() == '/'){
controlSuffix = controlSuffix.substr(1); controlSuffix = controlSuffix.substr(1);
} }