[vlc-commits] demux: adaptive: expose redirection to caller

Francois Cartegnie git at videolan.org
Thu Feb 15 10:17:57 CET 2018


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb 13 13:46:46 2018 +0100| [c90714b8f5dbcb903233d23a357764981298120d] | committer: Francois Cartegnie

demux: adaptive: expose redirection to caller

(cherry picked from commit d977ed05fccb96e7238499ccd6b07a8ba5cb305c)

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

 modules/demux/adaptive/http/HTTPConnection.cpp | 5 +++++
 modules/demux/adaptive/http/HTTPConnection.hpp | 1 +
 2 files changed, 6 insertions(+)

diff --git a/modules/demux/adaptive/http/HTTPConnection.cpp b/modules/demux/adaptive/http/HTTPConnection.cpp
index f30022aa4c..c324b257e3 100644
--- a/modules/demux/adaptive/http/HTTPConnection.cpp
+++ b/modules/demux/adaptive/http/HTTPConnection.cpp
@@ -439,6 +439,11 @@ std::string HTTPConnection::extraRequestHeaders() const
     return ss.str();
 }
 
+const ConnectionParams & HTTPConnection::getRedirection() const
+{
+    return locationparams;
+}
+
 StreamUrlConnection::StreamUrlConnection(vlc_object_t *p_object)
     : AbstractConnection(p_object)
 {
diff --git a/modules/demux/adaptive/http/HTTPConnection.hpp b/modules/demux/adaptive/http/HTTPConnection.hpp
index c1027fc877..fcccb22a66 100644
--- a/modules/demux/adaptive/http/HTTPConnection.hpp
+++ b/modules/demux/adaptive/http/HTTPConnection.hpp
@@ -73,6 +73,7 @@ namespace adaptive
                 virtual ssize_t read        (void *p_buffer, size_t len);
 
                 void setUsed( bool );
+                const ConnectionParams &getRedirection() const;
 
             protected:
                 virtual bool    connected   () const;



More information about the vlc-commits mailing list