FIX: MediaPlay not retry on end of stream

Change-Id: Iaf67de97a441cbff6d3c63a315fb1c35550e537e
Jira: none
This commit is contained in:
chunmao.guo 2023-12-29 10:13:52 +08:00 committed by Lane.Wei
parent 90419e1b39
commit 5dffe3cce3
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ void MediaPlayCtrl::Stop(wxString const &msg)
SetStatus(_L("Stopped [%d]!"), true);
else
SetStatus(_L("Stopped."), false);
if (!m_auto_retry || m_failed_code >= 100) // not keep retry on local error
if (!m_auto_retry || m_failed_code >= 100 || m_failed_code == 1) // not keep retry on local error or EOS
m_next_retry = wxDateTime();
} else if (!msg.IsEmpty()) {
SetStatus(msg, false);