vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Tue Feb 13 
12:21:18 2018 +0100| [5479dd0fddf3aac162b2ed336d5bc59263e14042] | committer: 
Francois Cartegnie

demux: adaptive: invalidate connection on redirect

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5479dd0fddf3aac162b2ed336d5bc59263e14042
---

 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

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to