FIX: MediaPlayCtrl maybe deleted

jira: [STUDIO-12622]
Change-Id: I9ee879c5bd046c9b3e1d33c96b7e3db9c9b35153
(cherry picked from commit 862fb9b53d3cda87135b93f5365608e22fc04411)
This commit is contained in:
xin.zhang
2025-07-29 17:53:55 +08:00
committed by Noisyfox
parent 296bbe3dd6
commit 73dd707d7b
2 changed files with 11 additions and 1 deletions

View File

@@ -72,6 +72,9 @@ private:
static const wxMediaState MEDIASTATE_LOADING = (wxMediaState) 5;
static const wxMediaState MEDIASTATE_BUFFERING = (wxMediaState) 6;
// token
std::shared_ptr<int> m_token = std::make_shared<int>(0);
wxMediaCtrl2 * m_media_ctrl;
wxMediaState m_last_state = MEDIASTATE_IDLE;
std::string m_machine;