FIX: [STUDIO-3309] MediaCtrl: Stop before Load({})

Change-Id: Id7c96fdf7fd717725e94b9ae28b261963b8f64e7
This commit is contained in:
chunmao.guo 2023-06-29 13:43:52 +08:00 committed by Lane.Wei
parent a98b781425
commit b50838b155
2 changed files with 8 additions and 2 deletions

View file

@ -170,10 +170,9 @@ void wxMediaCtrl2::Play() { wxMediaCtrl::Play(); }
void wxMediaCtrl2::Stop()
{
wxMediaCtrl::Stop();
#ifdef __WIN32__
wxMediaCtrl::Load(wxURI());
#else
wxMediaCtrl::Stop();
#endif
}