[vlc-commits] dash: chunk added optionalurl setter

Christopher Mueller git at videolan.org
Thu Feb 2 12:33:24 CET 2012


vlc | branch: master | Christopher Mueller <christopher.mueller at itec.aau.at> | Mon Jan 30 14:48:23 2012 +0100| [22230d8a646e4cb3f75a305e27f5407abde3faaa] | committer: Hugo Beauzée-Luyssen

dash: chunk added optionalurl setter

Signed-off-by: Hugo Beauzée-Luyssen <beauze.h at gmail.com>

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

 modules/stream_filter/dash/http/Chunk.cpp |   17 ++++++++++-------
 modules/stream_filter/dash/http/Chunk.h   |    1 +
 2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/modules/stream_filter/dash/http/Chunk.cpp b/modules/stream_filter/dash/http/Chunk.cpp
index 56d02d4..ac63737 100644
--- a/modules/stream_filter/dash/http/Chunk.cpp
+++ b/modules/stream_filter/dash/http/Chunk.cpp
@@ -34,28 +34,31 @@ Chunk::Chunk() : startByte( 0 ),
 {
 }
 
-int         Chunk::getEndByte   () const
+int                 Chunk::getEndByte       () const
 {
     return endByte;
 }
-int         Chunk::getStartByte () const
+int                 Chunk::getStartByte     () const
 {
     return startByte;
 }
-
-const std::string& Chunk::getUrl       () const
+const std::string&  Chunk::getUrl           () const
 {
     return url;
 }
-void        Chunk::setEndByte   (int endByte)
+void                Chunk::setEndByte       (int endByte)
 {
     this->endByte = endByte;
 }
-void        Chunk::setStartByte (int startByte)
+void                Chunk::setStartByte     (int startByte)
 {
     this->startByte = startByte;
 }
-void        Chunk::setUrl       ( const std::string& url )
+void                Chunk::setUrl           (const std::string& url )
 {
     this->url = url;
 }
+void                Chunk::addOptionalUrl   (const std::string& url)
+{
+    this->optionalUrls.push_back(url);
+}
diff --git a/modules/stream_filter/dash/http/Chunk.h b/modules/stream_filter/dash/http/Chunk.h
index 0409fd5..1ec46f7 100644
--- a/modules/stream_filter/dash/http/Chunk.h
+++ b/modules/stream_filter/dash/http/Chunk.h
@@ -43,6 +43,7 @@ namespace dash
                 void                setEndByte      (int endByte);
                 void                setStartByte    (int startByte);
                 void                setUrl          (const std::string& url);
+                void                addOptionalUrl  (const std::string& url);
 
             private:
                 std::string                 url;



More information about the vlc-commits mailing list