[vlc-commits] [Git][videolan/vlc][master] qt: VLCTime difference may be negative
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Fri Oct 16 22:49:33 UTC 2026
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
11bcb6f5 by Pierre Lamot at 2026-10-17T00:35:35+02:00
qt: VLCTime difference may be negative
this is notably used by the subtitle synchronization toolbox
- - - - -
1 changed file:
- modules/gui/qt/util/vlctick.cpp
Changes:
=====================================
modules/gui/qt/util/vlctick.cpp
=====================================
@@ -277,9 +277,7 @@ VLCTime::VLCTime(VLCDuration d)
VLCDuration VLCTime::operator-(const VLCTime &rhs) const
{
- if(m_ticks >= rhs.m_ticks)
- return VLCDuration(m_ticks - rhs.m_ticks);
- return VLCDuration();
+ return VLCDuration(m_ticks - rhs.m_ticks);
}
bool VLCTime::operator<=(const VLCTime &rhs) const
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/11bcb6f56d59b43cf589556f426c7a5cbd460fdd
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/11bcb6f56d59b43cf589556f426c7a5cbd460fdd
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list