[vlc-commits] stream_filter: dash: add callback method on chunk download

Francois Cartegnie git at videolan.org
Thu Dec 18 22:39:49 CET 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Nov 23 18:32:33 2014 +0100| [8ee98d1a9be317fea337ccbce6866f19549997b7] | committer: Francois Cartegnie

stream_filter: dash: add callback method on chunk download

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

 modules/stream_filter/dash/http/Chunk.h |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/stream_filter/dash/http/Chunk.h b/modules/stream_filter/dash/http/Chunk.h
index cd722dd..22ee70d 100644
--- a/modules/stream_filter/dash/http/Chunk.h
+++ b/modules/stream_filter/dash/http/Chunk.h
@@ -46,6 +46,7 @@ namespace dash
         {
             public:
                 Chunk           ();
+                virtual ~Chunk  () {}
 
                 size_t              getEndByte              () const;
                 size_t              getStartByte            () const;
@@ -71,6 +72,8 @@ namespace dash
                 void                setBitrate      (uint64_t bitrate);
                 int                 getBitrate      ();
 
+                virtual void        onDownload      () {}
+
             private:
                 std::string                 url;
                 std::string                 path;



More information about the vlc-commits mailing list