[vlc-commits] demux: adaptive: handle all redirect codes
    Francois Cartegnie 
    git at videolan.org
       
    Mon May  8 18:42:13 CEST 2017
    
    
  
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon May  8 18:16:03 2017 +0200| [408d124b082151683dfb0e4d00b4e1194c300c35] | committer: Francois Cartegnie
demux: adaptive: handle all redirect codes
refs #18290
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=408d124b082151683dfb0e4d00b4e1194c300c35
---
 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 ee7ee72d58..a250d87ccd 100644
--- a/modules/demux/adaptive/http/HTTPConnection.cpp
+++ b/modules/demux/adaptive/http/HTTPConnection.cpp
@@ -250,7 +250,7 @@ int HTTPConnection::parseReply()
         line = readLine();
     }
 
-    if((replycode == 301 || replycode == 307) &&
+    if((replycode == 301 || replycode == 302 || replycode == 307 || replycode == 308) &&
        !locationparams.getUrl().empty())
     {
         msg_Info(p_object, "%d redirection to %s", replycode, locationparams.getUrl().c_str());
    
    
More information about the vlc-commits
mailing list