Browse Source

demux:adaptive: fix some paramaters type

They are vlc_tick_t divided by vlc_tick_t so a ratio in float (and processed as such).
pull/72/head
Steve Lhomme 8 years ago
parent
commit
3f065057ae
  1. 2
      modules/demux/adaptive/logic/NearOptimalAdaptationLogic.cpp
  2. 4
      modules/demux/adaptive/logic/NearOptimalAdaptationLogic.hpp

2
modules/demux/adaptive/logic/NearOptimalAdaptationLogic.cpp

@ -65,7 +65,7 @@ NearOptimalAdaptationLogic::~NearOptimalAdaptationLogic()
BaseRepresentation *
NearOptimalAdaptationLogic::getNextQualityIndex( BaseAdaptationSet *adaptSet, RepresentationSelector &selector,
float gammaP, vlc_tick_t VD, vlc_tick_t Q )
float gammaP, float VD, float Q )
{
BaseRepresentation *ret = NULL;
BaseRepresentation *prev = NULL;

4
modules/demux/adaptive/logic/NearOptimalAdaptationLogic.hpp

@ -56,8 +56,8 @@ namespace adaptive
private:
BaseRepresentation * getNextQualityIndex( BaseAdaptationSet *, RepresentationSelector &,
float gammaP, vlc_tick_t VD,
vlc_tick_t Q /*current buffer level*/);
float gammaP, float VD,
float Q /*current buffer level*/);
float getUtility(const BaseRepresentation *);
unsigned getAvailableBw(unsigned, const BaseRepresentation *) const;
unsigned getMaxCurrentBw() const;

Loading…
Cancel
Save