vlc | branch: master | Steve Lhomme <[email protected]> | Tue Jun 12 12:14:27 
2018 +0200| [08eaa3f8a23d25a3f1e4c9a742035dd5e8611bce] | committer: Steve Lhomme

ncurses: explicitly convert vlc_tick_t values to second strings

using SEC_FROM_VLC_TICK()

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

 modules/gui/ncurses.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index d1ae4d7873..c5c4822fe2 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -1089,10 +1089,8 @@ static int DrawStatus(intf_thread_t *intf, 
input_thread_t *p_input)
                         repeat, random, loop);
 
         default:
-            val.i_int = var_GetInteger(p_input, "time");
-            secstotimestr(buf1, val.i_int / CLOCK_FREQ);
-            val.i_int = var_GetInteger(p_input, "length");
-            secstotimestr(buf2, val.i_int / CLOCK_FREQ);
+            secstotimestr(buf1, SEC_FROM_VLC_TICK(var_GetInteger(p_input, 
"time")));
+            secstotimestr(buf2, SEC_FROM_VLC_TICK(var_GetInteger(p_input, 
"length")));
 
             mvnprintw(y++, 0, COLS, _(" Position : %s/%s"), buf1, buf2);
 

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

Reply via email to