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

Steve Lhomme git at videolan.org
Fri Jul 6 16:07:28 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jun 14 14:29:05 2018 +0200| [4652ff3b85728e4b19a0c4267edfc6e6ef09525c] | committer: Steve Lhomme

var: convert vlc_tick_t to seconds explicitly using SEC_FROM_VLC_TICK()

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

 src/input/var.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/var.c b/src/input/var.c
index 8e83457509..bd585df7b2 100644
--- a/src/input/var.c
+++ b/src/input/var.c
@@ -297,7 +297,7 @@ void input_ControlVarNavigation( input_thread_t *p_input )
         if( input_priv(p_input)->title[i]->i_length > 0 )
         {
             strcpy( psz_length, " [" );
-            secstotimestr( &psz_length[2], input_priv(p_input)->title[i]->i_length / CLOCK_FREQ );
+            secstotimestr( &psz_length[2], SEC_FROM_VLC_TICK(input_priv(p_input)->title[i]->i_length) );
             strcat( psz_length, "]" );
         }
         else



More information about the vlc-commits mailing list