vlc | branch: master | Steve Lhomme <[email protected]> | 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];
 }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to