Browse Source

chromecast: reset state only when retrying

(cherry picked from commit aea0e78e43)
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
pull/135/head
Thomas Guillem 9 years ago
parent
commit
96c18ad9c3
  1. 7
      modules/stream_out/chromecast/chromecast_ctrl.cpp

7
modules/stream_out/chromecast/chromecast_ctrl.cpp

@ -463,10 +463,11 @@ int intf_sys_t::pace()
return CC_PACE_OK_ENDED;
else if( isStateError() || m_state == Stopped )
{
States error_state = m_state;
m_state = Ready;
if( error_state == LoadFailed && m_retry_on_fail )
if( m_state == LoadFailed && m_retry_on_fail )
{
m_state = Ready;
return CC_PACE_ERR_RETRY;
}
return CC_PACE_ERR;
}

Loading…
Cancel
Save