[vlc-commits] VLCPLModel: convert vlc_tick_t to seconds explicitly using SEC_FROM_VLC_TICK()

Steve Lhomme git at videolan.org
Fri Jul 6 09:20:56 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jun 14 12:08:20 2018 +0200| [25a185eb5f9031addd6eb1c9910161f224c33b2b] | committer: Steve Lhomme

VLCPLModel: convert vlc_tick_t to seconds explicitly using SEC_FROM_VLC_TICK()

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

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

diff --git a/modules/gui/macosx/VLCPLModel.m b/modules/gui/macosx/VLCPLModel.m
index 10875248b0..898d434148 100644
--- a/modules/gui/macosx/VLCPLModel.m
+++ b/modules/gui/macosx/VLCPLModel.m
@@ -527,7 +527,7 @@ static int VolumeUpdated(vlc_object_t *p_this, const char *psz_var,
         char psz_duration[MSTRTIME_MAX_SIZE];
         vlc_tick_t dur = input_item_GetDuration(p_input);
         if (dur != -1) {
-            secstotimestr(psz_duration, (int)(dur/1000000));
+            secstotimestr(psz_duration, SEC_FROM_VLC_TICK(dur));
             o_value = toNSStr(psz_duration);
         }
         else



More information about the vlc-commits mailing list