]> git.sesse.net Git - vlc/blobdiff - modules/stream_filter/dash/mpd/SegmentInfoCommon.h
demux: mkv: don't seek on current pos
[vlc] / modules / stream_filter / dash / mpd / SegmentInfoCommon.h
index 6358b0b53cd270ae286dc552ff40774f5a8919d9..2e4dbda02a041a33f37f5090f1a3afcc5ef68d1e 100644 (file)
@@ -28,6 +28,7 @@
 #include <string>
 #include <list>
 #include <ctime>
+#include "ICanonicalUrl.hpp"
 
 namespace dash
 {
@@ -36,10 +37,10 @@ namespace dash
         class Segment;
         class SegmentTimeline;
 
-        class SegmentInfoCommon
+        class SegmentInfoCommon : public ICanonicalUrl
         {
             public:
-                SegmentInfoCommon();
+                SegmentInfoCommon( ICanonicalUrl *parent = NULL );
                 virtual ~SegmentInfoCommon();
                 time_t                  getDuration() const;
                 void                    setDuration( time_t duration );
@@ -47,10 +48,10 @@ namespace dash
                 void                    setStartIndex( int startIndex );
                 Segment*                getInitialisationSegment() const;
                 void                    setInitialisationSegment( Segment* seg );
-                const std::list<std::string>&   getBaseURL() const;
                 void                    appendBaseURL( const std::string& url );
                 const SegmentTimeline*  getSegmentTimeline() const;
                 void                    setSegmentTimeline( const SegmentTimeline *segTl );
+                virtual Url             getUrlSegment() const; /* impl */
 
             private:
                 time_t                  duration;