FIX: wxMediaCtrl3 enter Stopped state soon

Change-Id: I120e9d4b9f85599a184650d1d95fe2bec42af171
Jira: STUDIO-8280
(cherry picked from commit 7648d96305d510b9e97f22124961de5115cde830)
This commit is contained in:
chunmao.guo
2024-09-26 17:14:20 +08:00
committed by Noisyfox
parent 240227de79
commit c3d9c27091
2 changed files with 3 additions and 0 deletions

View File

@@ -716,7 +716,9 @@ void MediaPlayCtrl::media_proc()
break; break;
} }
else if (url == "<play>") { else if (url == "<play>") {
BOOST_LOG_TRIVIAL(info) << "MediaPlayCtrl: start play";
m_media_ctrl->Play(); m_media_ctrl->Play();
BOOST_LOG_TRIVIAL(info) << "MediaPlayCtrl: end play";
} }
else { else {
BOOST_LOG_TRIVIAL(info) << "MediaPlayCtrl: start load"; BOOST_LOG_TRIVIAL(info) << "MediaPlayCtrl: start load";

View File

@@ -67,6 +67,7 @@ void wxMediaCtrl3::Stop()
std::unique_lock<std::mutex> lk(m_mutex); std::unique_lock<std::mutex> lk(m_mutex);
m_url.reset(); m_url.reset();
m_frame = wxImage(m_idle_image); m_frame = wxImage(m_idle_image);
NotifyStopped();
m_cond.notify_all(); m_cond.notify_all();
Refresh(); Refresh();
} }