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

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


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jul  5 16:15:19 2018 +0200| [1e5cc701c38f4c58a74863af22e2637568e7b263] | committer: Steve Lhomme

VLCBookmarksWindowController: use secf function to read the bookmark time

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

 modules/gui/macosx/VLCBookmarksWindowController.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCBookmarksWindowController.m b/modules/gui/macosx/VLCBookmarksWindowController.m
index 0d86211903..8f1ba9767e 100644
--- a/modules/gui/macosx/VLCBookmarksWindowController.m
+++ b/modules/gui/macosx/VLCBookmarksWindowController.m
@@ -306,7 +306,7 @@ clear:
     vlc_tick_t total = bookmark->i_time_offset;
     uint64_t hour = ( total / VLC_TICK_FROM_SEC(3600) );
     uint64_t min = ( total % VLC_TICK_FROM_SEC(3600) ) / VLC_TICK_FROM_SEC(60);
-    float    sec = ( total % VLC_TICK_FROM_SEC(60) ) / ( CLOCK_FREQ * 1. );
+    float    sec = secf_from_vlc_tick( total % VLC_TICK_FROM_SEC(60) );
 
     return [NSString stringWithFormat:@"%02llu:%02llu:%06.3f", hour, min, sec];
 }



More information about the vlc-commits mailing list