[vlc-commits] dash: RateBasedAdaptationLogic: cosmetics.
Hugo Beauzée-Luyssen
git at videolan.org
Sat Nov 26 12:34:36 CET 2011
vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Nov 24 16:28:55 2011 +0100| [4a7622120fb3aa873aae7e2361354578d0e065da] | committer: Jean-Baptiste Kempf
dash: RateBasedAdaptationLogic: cosmetics.
Removing useless destructor & using initialization list.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4a7622120fb3aa873aae7e2361354578d0e065da
---
.../adaptationlogic/RateBasedAdaptationLogic.cpp | 12 +++++-------
.../adaptationlogic/RateBasedAdaptationLogic.h | 1 -
2 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp b/modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp
index 03a3f8e..386000b 100644
--- a/modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp
+++ b/modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.cpp
@@ -33,13 +33,11 @@ using namespace dash::http;
using namespace dash::mpd;
using namespace dash::exception;
-RateBasedAdaptationLogic::RateBasedAdaptationLogic (IMPDManager *mpdManager) : AbstractAdaptationLogic(mpdManager)
-{
- this->mpdManager = mpdManager;
- this->currentPeriod = this->mpdManager->getFirstPeriod();
- this->count = 0;
-}
-RateBasedAdaptationLogic::~RateBasedAdaptationLogic ()
+RateBasedAdaptationLogic::RateBasedAdaptationLogic (IMPDManager *mpdManager) :
+ AbstractAdaptationLogic( mpdManager ),
+ mpdManager( mpdManager ),
+ count( 0 ),
+ currentPeriod( mpdManager->getFirstPeriod() )
{
}
diff --git a/modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.h b/modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.h
index 8337922..f6e2b89 100644
--- a/modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.h
+++ b/modules/stream_filter/dash/adaptationlogic/RateBasedAdaptationLogic.h
@@ -40,7 +40,6 @@ namespace dash
{
public:
RateBasedAdaptationLogic (dash::mpd::IMPDManager *mpdManager);
- virtual ~RateBasedAdaptationLogic ();
dash::http::Chunk* getNextChunk () throw(dash::exception::EOFException);
More information about the vlc-commits
mailing list