[vlc-devel] [PATCH 02/21] qt: add representation for invalid VLCTicks
Pierre Lamot
pierre at videolabs.io
Wed Aug 7 15:52:08 CEST 2019
---
modules/gui/qt/util/vlctick.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/gui/qt/util/vlctick.cpp b/modules/gui/qt/util/vlctick.cpp
index 68f650d012..43667f18ac 100644
--- a/modules/gui/qt/util/vlctick.cpp
+++ b/modules/gui/qt/util/vlctick.cpp
@@ -40,6 +40,9 @@ bool VLCTick::valid() const
QString VLCTick::toString() const
{
+ if (m_ticks == VLC_TICK_INVALID)
+ return "--:--";
+
int64_t t_sec = SEC_FROM_VLC_TICK(m_ticks);
int sec = t_sec % 60;
int min = (t_sec / 60) % 60;
--
2.17.1
More information about the vlc-devel
mailing list