[vlc-commits] [Git][videolan/vlc][master] demux: adaptive: fix bogus port discarding condition

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Jan 24 03:51:28 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
6d65ec65 by Francois Cartegnie at 2023-01-24T03:35:22+00:00
demux: adaptive: fix bogus port discarding condition

- - - - -


1 changed file:

- modules/demux/adaptive/http/ConnectionParams.cpp


Changes:

=====================================
modules/demux/adaptive/http/ConnectionParams.cpp
=====================================
@@ -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;
     }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6d65ec658949c63546af2df9758865aeed1a23e5

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6d65ec658949c63546af2df9758865aeed1a23e5
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list