Fixed RTSP mplayer support

This commit is contained in:
Thulinma 2018-10-16 11:11:23 +02:00
parent 8034578fad
commit 03c64340c3

View file

@ -189,7 +189,7 @@ namespace Mist{
source = source.substr(0, loc);
}
size_t found = HTTP_R.url.find('/', 7);
if (!streamName.size()){
if (found != std::string::npos && !streamName.size()){
streamName = HTTP_R.url.substr(found + 1, HTTP_R.url.substr(found + 1).find('/'));
Util::sanitizeName(streamName);
}