Commit 7961e490 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptive: fix local file playback regression

parent 473237f3
......@@ -64,7 +64,14 @@ void ConnectionParams::setPath(const std::string &path_)
std::ostringstream os;
os.imbue(std::locale("C"));
os << scheme << "://" << hostname << ":" << port;
os << scheme << "://";
if(!hostname.empty())
{
os << hostname;
if( (port != 80 && scheme != "http") ||
(port != 443 && scheme != "https") )
os << ":" << port;
}
os << path;
uri = os.str();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment