Skip to content
Snippets Groups Projects
Commit 6d65ec65 authored by François Cartegnie's avatar François Cartegnie :fingers_crossed: Committed by Steve Lhomme
Browse files

demux: adaptive: fix bogus port discarding condition

parent adde4af8
No related branches found
No related tags found
1 merge request!3145demux: adaptive: fix bogus port discarding condition
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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment