[vlc-commits] chromecast: convert vlc_tick_t to seconds explicitly using SEC_FROM_VLC_TICK()
Steve Lhomme
git at videolan.org
Thu Jul 5 16:57:45 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 13 14:46:03 2018 +0200| [dfea65f824af7ece89dda2b631af52361851bf15] | committer: Steve Lhomme
chromecast: convert vlc_tick_t to seconds explicitly using SEC_FROM_VLC_TICK()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dfea65f824af7ece89dda2b631af52361851bf15
---
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 37934a76ba..3796780eb4 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -960,7 +960,7 @@ bool intf_sys_t::handleMessages()
// how many bytes to read
ssize_t i_ret = m_communication->receive( p_packet + i_received,
i_payloadSize + PACKET_HEADER_LEN - i_received,
- PING_WAIT_TIME - ( vlc_tick_now() - i_begin_time ) / CLOCK_FREQ,
+ PING_WAIT_TIME - SEC_FROM_VLC_TICK( vlc_tick_now() - i_begin_time ),
&b_timeout );
if ( i_ret < 0 )
{
More information about the vlc-commits
mailing list