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

Steve Lhomme git at videolan.org
Thu Jul 5 16:17:13 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jun 15 08:36:26 2018 +0200| [e22fabb350dda4b0b728daff0e20dd5a6cd0b77e] | committer: Steve Lhomme

livehttp: use secf to tick functions for conversion

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

 modules/access_output/livehttp.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/access_output/livehttp.c b/modules/access_output/livehttp.c
index aa0a1785c4..17f080e35a 100644
--- a/modules/access_output/livehttp.c
+++ b/modules/access_output/livehttp.c
@@ -998,9 +998,8 @@ static ssize_t writeSegment( sout_access_out_t *p_access )
            return -1;
         }
 
-        p_sys->f_seglen =
-            (float)(output_last_length +
-                    output->i_dts - p_sys->i_opendts) / CLOCK_FREQ;
+        p_sys->f_seglen = secf_from_vlc_tick(output_last_length +
+                                    output->i_dts - p_sys->i_opendts);
 
         if ( (size_t)val >= output->i_buffer )
         {



More information about the vlc-commits mailing list