[vlc-commits] qt: use secf function to read the bookmark time

Steve Lhomme git at videolan.org
Thu Jul 5 16:17:15 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jul  5 16:16:48 2018 +0200| [468e3c8053bee61646aec83bb31466be3b08fc3a] | committer: Steve Lhomme

qt: use secf function to read the bookmark time

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=468e3c8053bee61646aec83bb31466be3b08fc3a
---

 modules/gui/qt/dialogs/bookmarks.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/dialogs/bookmarks.cpp b/modules/gui/qt/dialogs/bookmarks.cpp
index d8b5f6c530..cfc7e7c233 100644
--- a/modules/gui/qt/dialogs/bookmarks.cpp
+++ b/modules/gui/qt/dialogs/bookmarks.cpp
@@ -141,7 +141,7 @@ void BookmarksDialog::update()
         vlc_tick_t total = pp_bookmarks[i]->i_time_offset;
         unsigned hours   = ( total / VLC_TICK_FROM_SEC(3600) );
         unsigned minutes = ( total % VLC_TICK_FROM_SEC(3600) ) / VLC_TICK_FROM_SEC(60);
-        float    seconds = ( total % VLC_TICK_FROM_SEC(60) ) / ( CLOCK_FREQ * 1. );
+        float    seconds = secf_from_vlc_tick( total % VLC_TICK_FROM_SEC(60) );
 
         QStringList row;
         row << QString( qfu( pp_bookmarks[i]->psz_name ) );



More information about the vlc-commits mailing list