FIX: show video size in stat

Change-Id: I29df549e5ed573bb7b9a96d9a0897f3ce96ec87f
Jira: none
(cherry picked from commit 4cf79f34ad8f16331c597ad49234e0401826c34a)
This commit is contained in:
chunmao.guo 2023-12-01 09:58:53 +08:00 committed by Lane.Wei
parent 6a56c04e67
commit adfcddd329
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ MediaPlayCtrl::MediaPlayCtrl(wxWindow *parent, wxMediaCtrl2 *media_ctrl, const w
m_label_stat->SetForegroundColour(wxColour("#323A3C"));
#if !BBL_RELEASE_TO_PUBLIC
m_media_ctrl->Bind(EVT_MEDIA_CTRL_STAT, [this](auto & e) {
m_label_stat->SetLabel(e.GetString());
wxSize size = m_media_ctrl->GetVideoSize();
m_label_stat->SetLabel(e.GetString() + wxString::Format(" VS:%ix%i", size.x, size.y));
});
#endif