vlc | branch: master | Christopher Mueller <christopher.muel...@itec.aau.at> | Fri Mar 9 16:45:29 2012 +0100| [96789285b241b73c17d79491eb02b42e2139ac49] | committer: Hugo Beauzée-Luyssen
dash: added connection to chunk Signed-off-by: Hugo Beauzée-Luyssen <beauz...@gmail.com> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=96789285b241b73c17d79491eb02b42e2139ac49 --- modules/stream_filter/dash/http/Chunk.cpp | 11 ++++++++++- modules/stream_filter/dash/http/Chunk.h | 5 +++++ 2 files changed, 15 insertions(+), 1 deletions(-) diff --git a/modules/stream_filter/dash/http/Chunk.cpp b/modules/stream_filter/dash/http/Chunk.cpp index ee43048..e47e5e9 100644 --- a/modules/stream_filter/dash/http/Chunk.cpp +++ b/modules/stream_filter/dash/http/Chunk.cpp @@ -36,7 +36,8 @@ Chunk::Chunk () : port (0), isHostname (false), length (0), - bytesRead (0) + bytesRead (0), + connection (NULL) { } @@ -140,3 +141,11 @@ size_t Chunk::getPercentDownloaded () const { return (size_t)(((float)this->bytesRead / this->length) * 100); } +IHTTPConnection* Chunk::getConnection () const +{ + return this->connection; +} +void Chunk::setConnection (IHTTPConnection *connection) +{ + this->connection = connection; +} diff --git a/modules/stream_filter/dash/http/Chunk.h b/modules/stream_filter/dash/http/Chunk.h index 2d2f96c..7e948dd 100644 --- a/modules/stream_filter/dash/http/Chunk.h +++ b/modules/stream_filter/dash/http/Chunk.h @@ -28,6 +28,8 @@ #include <vlc_common.h> #include <vlc_url.h> +#include "IHTTPConnection.h" + #include <vector> #include <string> #include <stdint.h> @@ -52,7 +54,9 @@ namespace dash uint64_t getBytesRead () const; uint64_t getBytesToRead () const; size_t getPercentDownloaded () const; + IHTTPConnection* getConnection () const; + void setConnection (IHTTPConnection *connection); void setBytesRead (uint64_t bytes); void setLength (uint64_t length); void setEndByte (int endByte); @@ -77,6 +81,7 @@ namespace dash bool isHostname; size_t length; uint64_t bytesRead; + IHTTPConnection *connection; }; } } _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org http://mailman.videolan.org/listinfo/vlc-commits