[vlc-commits] demux: adaptive: never reuse chunked stream
    Francois Cartegnie 
    git at videolan.org
       
    Wed Sep  5 15:22:53 CEST 2018
    
    
  
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Sep  5 15:19:50 2018 +0200| [7210d0a7d3148c18834570ea437c2c96d7f62c49] | committer: Francois Cartegnie
demux: adaptive: never reuse chunked stream
(cherry picked from commit e5dbc5301ebd383f8c4d3eb933703a293e8e8260)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=7210d0a7d3148c18834570ea437c2c96d7f62c49
---
 modules/demux/adaptive/http/HTTPConnection.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/adaptive/http/HTTPConnection.cpp b/modules/demux/adaptive/http/HTTPConnection.cpp
index dbfdc3bf70..451e81d2bd 100644
--- a/modules/demux/adaptive/http/HTTPConnection.cpp
+++ b/modules/demux/adaptive/http/HTTPConnection.cpp
@@ -356,7 +356,7 @@ void HTTPConnection::setUsed( bool b )
     available = !b;
     if(available)
     {
-        if(!connectionClose && contentLength == bytesRead )
+        if(!connectionClose && contentLength == bytesRead && (!chunked || chunked_eof))
         {
             queryOk = false;
             bytesRead = 0;
    
    
More information about the vlc-commits
mailing list