[vlc-commits] demux: adaptive: fix bogus recycling of access
Francois Cartegnie
git at videolan.org
Thu May 14 15:30:22 CEST 2020
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed May 13 18:09:09 2020 +0200| [56409389d9c203078972f07e84d2a3405e1d6d94] | committer: Francois Cartegnie
demux: adaptive: fix bogus recycling of access
refs #24701
(cherry picked from commit 6828786dc799d39d0083745ec19246f90854e608)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=56409389d9c203078972f07e84d2a3405e1d6d94
---
modules/demux/adaptive/http/HTTPConnection.cpp | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/modules/demux/adaptive/http/HTTPConnection.cpp b/modules/demux/adaptive/http/HTTPConnection.cpp
index ac2b0f84c1..a5c30d3b0f 100644
--- a/modules/demux/adaptive/http/HTTPConnection.cpp
+++ b/modules/demux/adaptive/http/HTTPConnection.cpp
@@ -492,9 +492,13 @@ void StreamUrlConnection::reset()
bytesRange = BytesRange();
}
-bool StreamUrlConnection::canReuse(const ConnectionParams ¶ms) const
+bool StreamUrlConnection::canReuse(const ConnectionParams ¶ms_) const
{
- return available && params.usesAccess();
+ if( !available || !params_.usesAccess() )
+ return false;
+ return (params.getHostname() == params_.getHostname() &&
+ params.getScheme() == params_.getScheme() &&
+ params.getPort() == params_.getPort());
}
enum RequestStatus
More information about the vlc-commits
mailing list