Browse Source

qt: don't let VLCTick::scale to cause decay into VLC_TICK_INVALID

Signed-off-by: Pierre Lamot <pierre@videolabs.io>
pull/117/head
Fatih Uzunoglu 6 years ago
committed by Pierre Lamot
parent
commit
b0d2777e68
  1. 5
      modules/gui/qt/util/vlctick.cpp

5
modules/gui/qt/util/vlctick.cpp

@ -61,7 +61,10 @@ QString VLCTick::toString() const
VLCTick VLCTick::scale(float scalar) const
{
return VLCTick(m_ticks*scalar);
if (scalar == 0.0f)
return VLCTick(VLC_TICK_0); // to not decay to VLC_TICK_INVALID
return VLCTick(m_ticks * scalar);
}
int VLCTick::toSeconds() const

Loading…
Cancel
Save