mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-03 01:31:53 +02:00
chromecast: convert vlc_tick_t to seconds explicitly using SEC_FROM_VLC_TICK()
This commit is contained in:
parent
a6aaaa7649
commit
dfea65f824
@ -960,7 +960,7 @@ bool intf_sys_t::handleMessages()
|
|||||||
// how many bytes to read
|
// how many bytes to read
|
||||||
ssize_t i_ret = m_communication->receive( p_packet + i_received,
|
ssize_t i_ret = m_communication->receive( p_packet + i_received,
|
||||||
i_payloadSize + PACKET_HEADER_LEN - 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 );
|
&b_timeout );
|
||||||
if ( i_ret < 0 )
|
if ( i_ret < 0 )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user