[vlc-commits] demux: adaptive: expose redirection to caller
Francois Cartegnie
git at videolan.org
Tue Feb 13 14:07:38 CET 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb 13 13:46:46 2018 +0100| [d977ed05fccb96e7238499ccd6b07a8ba5cb305c] | committer: Francois Cartegnie
demux: adaptive: expose redirection to caller
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d977ed05fccb96e7238499ccd6b07a8ba5cb305c
---
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