[vlc-commits] demux: adaptive: invalidate connection on redirect
Francois Cartegnie
git at videolan.org
Thu Feb 15 10:17:54 CET 2018
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb 13 12:21:18 2018 +0100| [939a07baf7d6fbe2a442a97aaa96dee4bc6df892] | committer: Francois Cartegnie
demux: adaptive: invalidate connection on redirect
(cherry picked from commit 5479dd0fddf3aac162b2ed336d5bc59263e14042)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=939a07baf7d6fbe2a442a97aaa96dee4bc6df892
---
modules/demux/adaptive/http/Chunk.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/demux/adaptive/http/Chunk.cpp b/modules/demux/adaptive/http/Chunk.cpp
index bf36002f05..9094322822 100644
--- a/modules/demux/adaptive/http/Chunk.cpp
+++ b/modules/demux/adaptive/http/Chunk.cpp
@@ -223,7 +223,11 @@ bool HTTPChunkSource::prepare(int i_redir)
if(i_ret != VLC_SUCCESS)
{
if(i_ret == VLC_ETIMEOUT && i_redir < 3)
+ {
+ connection->setUsed(false);
+ connection = NULL;
return HTTPChunkSource::prepare(i_redir + 1);
+ }
return false;
}
/* Because we don't know Chunk size at start, we need to get size
More information about the vlc-commits
mailing list