Skip to content
Snippets Groups Projects
Commit 8a56a301 authored by Thomas Guillem's avatar Thomas Guillem
Browse files

chromecast: report cc timestamp even when paused

parent ba48fe63
No related branches found
No related tags found
No related merge requests found
......@@ -1073,13 +1073,14 @@ mtime_t intf_sys_t::getPlaybackTimestamp()
switch( m_state )
{
case Buffering:
case Paused:
if( !m_played_once )
return VLC_TS_INVALID;
/* fallthrough */
case Playing:
{
mtime_t now = mdate();
if( m_last_request_id == 0
if( m_state == Playing && m_last_request_id == 0
&& now - m_cc_time_last_request_date > INT64_C(4000000) )
{
m_cc_time_last_request_date = now;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment