FIX: not keep restarting video on local error

Change-Id: I2f79208326f92931bec108a4609088788ceca998
This commit is contained in:
chunmao.guo 2022-09-07 14:03:53 +08:00 committed by Lane.Wei
parent 288913cc4b
commit b2b2bc2a9c
3 changed files with 18 additions and 5 deletions

View file

@ -135,6 +135,8 @@ void MediaPlayCtrl::Stop()
m_cond.notify_all();
m_last_state = MEDIASTATE_IDLE;
SetStatus(_L("Stopped."));
if (m_failed_code >= 100) // not keep retry on local error
m_next_retry = wxDateTime();
}
++m_failed_retry;
if (m_next_retry.IsValid())