[vlc-commits] chromecast: replace hardcoded CLOCK_FREQ multiples by VLC_TICK_FROM_SEC()

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


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 13 14:44:42 2018 +0200| [a6aaaa764935a59438544855c27aae2aaae972b9] | committer: Steve Lhomme

chromecast: replace hardcoded CLOCK_FREQ multiples by VLC_TICK_FROM_SEC()

Easier to read and more explicit.

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

 modules/stream_out/chromecast/chromecast_ctrl.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index b262d65117..37934a76ba 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -1140,7 +1140,7 @@ vlc_tick_t intf_sys_t::getPlaybackTimestamp()
             assert( m_communication );
             vlc_tick_t now = vlc_tick_now();
             if( m_state == Playing && m_last_request_id == 0
-             && now - m_cc_time_last_request_date > INT64_C(4000000) )
+             && now - m_cc_time_last_request_date > VLC_TICK_FROM_SEC(4) )
             {
                 m_cc_time_last_request_date = now;
                 m_last_request_id =



More information about the vlc-commits mailing list