FIX: not keep restarting video on local error

Change-Id: I2f79208326f92931bec108a4609088788ceca998
This commit is contained in:
chunmao.guo authored and Lane.Wei committed 2022-09-08 21:49:36 +08:00
1 parent 288913cc4b
commit b2b2bc2a9c
3 files changed
+18 -5

No files matched your search

+2
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())