]> git.sesse.net Git - vlc/commitdiff
stream_filter: dash: remove double initialization
authorFrancois Cartegnie <fcvlcdev@free.fr>
Tue, 18 Nov 2014 22:19:11 +0000 (23:19 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Thu, 18 Dec 2014 20:23:49 +0000 (21:23 +0100)
modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp

index 3d0d7d69479762fffd0cfb03f7522da7cadeb4aa..3543250cd4c4157b464db3a12f10583cb4bfb5d6 100644 (file)
@@ -37,12 +37,10 @@ RateBasedAdaptationLogic::RateBasedAdaptationLogic  (MPDManager *mpdManager, str
                           AbstractAdaptationLogic   (mpdManager, stream),
                           mpdManager                (mpdManager),
                           count                     (0),
-                          currentPeriod             (mpdManager->getFirstPeriod()),
-                          width                     (0),
-                          height                    (0)
+                          currentPeriod             (mpdManager->getFirstPeriod())
 {
-    this->width  = var_InheritInteger(stream, "dash-prefwidth");
-    this->height = var_InheritInteger(stream, "dash-prefheight");
+    width  = var_InheritInteger(stream, "dash-prefwidth");
+    height = var_InheritInteger(stream, "dash-prefheight");
 }
 
 Chunk*  RateBasedAdaptationLogic::getNextChunk()