[vlc-commits] live555: use helper function to convert to vlc_tick_t from floating point seconds

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


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jun 18 09:40:33 2018 +0200| [2f270fa3573deb399ab6f8260e8eb1403c8f8343] | committer: Steve Lhomme

live555: use helper function to convert to vlc_tick_t from floating point seconds

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

 modules/access/live555.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/live555.cpp b/modules/access/live555.cpp
index 62d8142144..acf38f251a 100644
--- a/modules/access/live555.cpp
+++ b/modules/access/live555.cpp
@@ -1521,7 +1521,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
             pi64 = va_arg( args, int64_t * );
             if( p_sys->f_npt > 0 )
             {
-                *pi64 = (int64_t)(p_sys->f_npt * (double)CLOCK_FREQ);
+                *pi64 = vlc_tick_from_sec(p_sys->f_npt);
                 return VLC_SUCCESS;
             }
             return VLC_EGENERIC;



More information about the vlc-commits mailing list