]> git.sesse.net Git - vlc/commitdiff
stream_filter: dash: remove duplicate member
authorFrancois Cartegnie <fcvlcdev@free.fr>
Thu, 27 Nov 2014 10:29:33 +0000 (11:29 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Thu, 18 Dec 2014 20:23:50 +0000 (21:23 +0100)
modules/stream_filter/dash/adaptationlogic/AbstractAdaptationLogic.cpp
modules/stream_filter/dash/adaptationlogic/AbstractAdaptationLogic.h
modules/stream_filter/dash/adaptationlogic/AlwaysBestAdaptationLogic.cpp
modules/stream_filter/dash/adaptationlogic/AlwaysBestAdaptationLogic.h
modules/stream_filter/dash/adaptationlogic/AlwaysLowestAdaptationLogic.cpp [new file with mode: 0644]
modules/stream_filter/dash/adaptationlogic/AlwaysLowestAdaptationLogic.hpp [new file with mode: 0644]
modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp
modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.h

index 565aa95f6e6deaf1eef5364105736fd90ad93be2..410726c46ac1d01fe690734a13a2eec9dd881edc 100644 (file)
@@ -32,9 +32,9 @@ using namespace dash::xml;
 using namespace dash::mpd;
 
 AbstractAdaptationLogic::AbstractAdaptationLogic    (MPDManager *mpdManager, stream_t *stream) :
+                         mpdManager                 (mpdManager),
                          bpsAvg                     (0),
                          bpsLastChunk               (0),
-                         mpdManager                 (mpdManager),
                          stream                     (stream),
                          bufferedMicroSec           (0),
                          bufferedPercent            (0)
index be21415964e71bf38faff6826531fa1cf154d3bb..2b647fd8d69e04c0dd1a32e5e2eede3907c1b0fa 100644 (file)
@@ -53,10 +53,12 @@ namespace dash
                 uint64_t                    getBpsLastChunk         () const;
                 int                         getBufferPercent        () const;
 
+            protected:
+                dash::mpd::MPDManager  *mpdManager;
+
             private:
                 int                     bpsAvg;
                 long                    bpsLastChunk;
-                dash::mpd::MPDManager  *mpdManager;
                 stream_t                *stream;
                 mtime_t                 bufferedMicroSec;
                 int                     bufferedPercent;
index 6fe3a5ddc4aa68089ac61a29e686fe2fb3470c85..562e48813fd32f1a4b93fa297443b8e7e238a635 100644 (file)
@@ -35,7 +35,6 @@ using namespace dash::mpd;
 AlwaysBestAdaptationLogic::AlwaysBestAdaptationLogic    (MPDManager *mpdManager, stream_t *stream) :
                            AbstractAdaptationLogic      (mpdManager, stream)
 {
-    this->mpdManager    = mpdManager;
     this->count         = 0;
     this->initSchedule();
 }
index b72b8dc72d3d1a5f6c69ac125600568aa7f4ffa3..e4c322304d0077f0151ee1cb589a94407944e2bc 100644 (file)
@@ -49,7 +49,6 @@ namespace dash
 
             private:
                 std::vector<mpd::ISegment *>        schedule;
-                dash::mpd::MPDManager              *mpdManager;
                 size_t                              count;
                 dash::mpd::Representation           *bestRepresentation;
 
diff --git a/modules/stream_filter/dash/adaptationlogic/AlwaysLowestAdaptationLogic.cpp b/modules/stream_filter/dash/adaptationlogic/AlwaysLowestAdaptationLogic.cpp
new file mode 100644 (file)
index 0000000..c5334f6
--- /dev/null
@@ -0,0 +1,5 @@
+#include "AlwaysLowestAdaptationLogic.hpp"
+
+AlwaysLowestAdaptationLogic::AlwaysLowestAdaptationLogic()
+{
+}
diff --git a/modules/stream_filter/dash/adaptationlogic/AlwaysLowestAdaptationLogic.hpp b/modules/stream_filter/dash/adaptationlogic/AlwaysLowestAdaptationLogic.hpp
new file mode 100644 (file)
index 0000000..3707b00
--- /dev/null
@@ -0,0 +1,10 @@
+#ifndef ALWAYSLOWESTADAPTATIONLOGIC_HPP
+#define ALWAYSLOWESTADAPTATIONLOGIC_HPP
+
+class AlwaysLowestAdaptationLogic
+{
+public:
+    AlwaysLowestAdaptationLogic();
+};
+
+#endif // ALWAYSLOWESTADAPTATIONLOGIC_HPP
index 5e6c61b47a14c0cc17a18aefb19cf31b671386a3..b55eb7ccc32cb83a690426b52d7dc01190c410f4 100644 (file)
@@ -35,7 +35,6 @@ using namespace dash::mpd;
 
 RateBasedAdaptationLogic::RateBasedAdaptationLogic  (MPDManager *mpdManager, stream_t *stream) :
                           AbstractAdaptationLogic   (mpdManager, stream),
-                          mpdManager                (mpdManager),
                           count                     (0),
                           currentPeriod             (mpdManager->getFirstPeriod())
 {
index fcecd66ff5e006828b85eb86d6f893d981eb60a4..c1d130685f4a7cb43655076abfbded6921ec8da5 100644 (file)
@@ -48,7 +48,6 @@ namespace dash
                 const dash::mpd::Representation *getCurrentRepresentation() const;
 
             private:
-                dash::mpd::MPDManager  *mpdManager;
                 size_t                  count;
                 dash::mpd::Period       *currentPeriod;
                 int                     width;