FIX: [STUDIO-2557] use load() to stop media play on windows

Change-Id: I0d2d45569ef64a5a212ea04fe926a3a25ce7b50d
This commit is contained in:
chunmao.guo 2023-04-06 19:37:18 +08:00 committed by Lane.Wei
parent 82b3e92069
commit c0bcb2270a
1 changed files with 8 additions and 1 deletions

View File

@ -157,7 +157,14 @@ void wxMediaCtrl2::Load(wxURI url)
void wxMediaCtrl2::Play() { wxMediaCtrl::Play(); }
void wxMediaCtrl2::Stop() { wxMediaCtrl::Stop(); }
void wxMediaCtrl2::Stop()
{
#ifdef __WIN32__
wxMediaCtrl::Load(wxURI());
#else
wxMediaCtrl::Stop();
#endif
}
#ifdef __LINUX__
extern int gst_bambu_last_error;