FIX: [STUDIO-3551] pass worker thread id to DirectShow

Change-Id: If55e39768ec1e43103c59168b139bb115db6b092
This commit is contained in:
chunmao.guo 2023-07-07 15:42:22 +08:00 committed by Lane.Wei
parent 53890cf106
commit 282c785304

View file

@ -114,8 +114,8 @@ void wxMediaCtrl2::Load(wxURI url)
keyWmp.SetValue("Permissions", permissions);
}
}
url = wxURI(url.BuildURI().append("&hwnd=").append(
boost::lexical_cast<std::string>(GetHandle())));
url = wxURI(url.BuildURI().append("&hwnd=").append(boost::lexical_cast<std::string>(GetHandle())).append("&tid=").append(
boost::lexical_cast<std::string>(GetCurrentThreadId())));
#endif
#ifdef __WXGTK3__
GstElementFactory *factory;
@ -171,9 +171,6 @@ void wxMediaCtrl2::Play() { wxMediaCtrl::Play(); }
void wxMediaCtrl2::Stop()
{
wxMediaCtrl::Stop();
#ifdef __WIN32__
wxMediaCtrl::Load(wxURI());
#endif
}
#ifdef __LINUX__