Fixed RTMP_REWRITE trigger behaviour for invalid responses.

This commit is contained in:
Thulinma 2016-12-31 17:29:23 +01:00
parent bd6034828f
commit b27c25482a

View file

@ -756,6 +756,8 @@ namespace Mist {
size_t lSlash = newUrl.rfind('/'); size_t lSlash = newUrl.rfind('/');
if (lSlash != std::string::npos){ if (lSlash != std::string::npos){
streamName = newUrl.substr(lSlash+1); streamName = newUrl.substr(lSlash+1);
}else{
streamName = newUrl;
} }
} }
/*LTS-END*/ /*LTS-END*/