Commit 6d65ec65 authored by François Cartegnie's avatar François Cartegnie 🤞 Committed by Steve Lhomme
Browse files

demux: adaptive: fix bogus port discarding condition

parent adde4af8
Pipeline #306360 passed with stages
in 48 minutes and 43 seconds
......@@ -70,8 +70,8 @@ void ConnectionParams::setPath(const std::string &path_)
if (!hostname.empty()) {
url_components.psz_host = const_cast<char *>(hostname.c_str());
if ((port != 80 && scheme != "http") ||
(port != 443 && scheme != "https"))
if ((port != 80 && scheme == "http") ||
(port != 443 && scheme == "https"))
url_components.i_port = port;
}
......
Supports Markdown
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