[vlc-commits] cache_block: convert vlc_tick_t to milliseconds using MS_FROM_VLC_TICK()

Steve Lhomme git at videolan.org
Thu Jul 5 16:57:48 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 13 17:18:56 2018 +0200| [6f5f07f8046d3501832277b23e1ea89cf5b706f2] | committer: Steve Lhomme

cache_block: convert vlc_tick_t to milliseconds using MS_FROM_VLC_TICK()

The internal timeout is passed to poll() in milliseconds.

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

 modules/stream_filter/cache_block.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/stream_filter/cache_block.c b/modules/stream_filter/cache_block.c
index 8609382f9d..8ab5bc7407 100644
--- a/modules/stream_filter/cache_block.c
+++ b/modules/stream_filter/cache_block.c
@@ -143,7 +143,7 @@ static void AStreamPrebufferBlock(stream_t *s)
 
             msg_Dbg(s, "prebuffering done %zu bytes in %zus - %zu KiB/s",
                         cache_size,
-                        sys->stat.read_time / CLOCK_FREQ,
+                        SEC_FROM_VLC_TICK(sys->stat.read_time),
                         byterate / 1024 );
             break;
         }
@@ -162,7 +162,7 @@ static void AStreamPrebufferBlock(stream_t *s)
         if (first)
         {
             msg_Dbg(s, "received first data after %"PRId64" ms",
-                    (vlc_tick_now() - start) / 1000);
+                    MS_FROM_VLC_TICK(vlc_tick_now() - start));
             first = false;
         }
     }



More information about the vlc-commits mailing list