[vlc-commits] demux: adaptative: set template sequence number to startnumber

Francois Cartegnie git at videolan.org
Wed Sep 23 21:15:09 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Sep 23 18:10:09 2015 +0200| [6e2fb50e68142ae642993a7ed95475cc4173ac42] | committer: Francois Cartegnie

demux: adaptative: set template sequence number to startnumber

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

 modules/demux/adaptative/playlist/SegmentTemplate.cpp |    5 +++++
 modules/demux/adaptative/playlist/SegmentTemplate.h   |    1 +
 2 files changed, 6 insertions(+)

diff --git a/modules/demux/adaptative/playlist/SegmentTemplate.cpp b/modules/demux/adaptative/playlist/SegmentTemplate.cpp
index 52b2a31..7af6f12 100644
--- a/modules/demux/adaptative/playlist/SegmentTemplate.cpp
+++ b/modules/demux/adaptative/playlist/SegmentTemplate.cpp
@@ -56,6 +56,11 @@ void MediaSegmentTemplate::mergeWith(MediaSegmentTemplate *updated, mtime_t prun
     }
 }
 
+uint64_t MediaSegmentTemplate::getSequenceNumber() const
+{
+    return startNumber.Get();
+}
+
 void MediaSegmentTemplate::setSourceUrl(const std::string &url)
 {
     sourceUrl = Url(Url::Component(url, this));
diff --git a/modules/demux/adaptative/playlist/SegmentTemplate.h b/modules/demux/adaptative/playlist/SegmentTemplate.h
index 5c8ef64..47f87be 100644
--- a/modules/demux/adaptative/playlist/SegmentTemplate.h
+++ b/modules/demux/adaptative/playlist/SegmentTemplate.h
@@ -51,6 +51,7 @@ namespace adaptative
                 MediaSegmentTemplate( SegmentInformation * = NULL );
                 virtual void setSourceUrl( const std::string &url ); /* reimpl */
                 void mergeWith( MediaSegmentTemplate *, mtime_t );
+                virtual uint64_t getSequenceNumber() const; /* reimpl */
                 Property<size_t>        startNumber;
         };
 



More information about the vlc-commits mailing list