[vlc-commits] control: use secf to tick functions for conversion

Steve Lhomme git at videolan.org
Tue Sep 18 11:01:48 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jun 14 14:12:47 2018 +0200| [3ebfeafb29c382890f74c7c45d3cb6346fa31ffb] | committer: Steve Lhomme

control: use secf to tick functions for conversion

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

 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 ee5e16f74c..0abb0f9875 100644
--- a/src/input/var.c
+++ b/src/input/var.c
@@ -192,7 +192,7 @@ static void UpdateBookmarksOption( input_thread_t *p_input )
         /* Append bookmark to option-buffer */
         /* TODO: escape inappropriate values */
         vlc_memstream_printf( &vstr, "%s{name=%s,time=%.3f}",
-            i > 0 ? "," : "", sp->psz_name, ( 1. * sp->i_time_offset ) / CLOCK_FREQ );
+            i > 0 ? "," : "", sp->psz_name, secf_from_vlc_tick(sp->i_time_offset) );
     }
 
     if( vlc_memstream_close( &vstr ) )



More information about the vlc-commits mailing list