FIX: show video size in stat
Change-Id: I29df549e5ed573bb7b9a96d9a0897f3ce96ec87f Jira: none (cherry picked from commit 4cf79f34ad8f16331c597ad49234e0401826c34a)
This commit is contained in:
parent
6a56c04e67
commit
adfcddd329
|
@ -45,7 +45,8 @@ MediaPlayCtrl::MediaPlayCtrl(wxWindow *parent, wxMediaCtrl2 *media_ctrl, const w
|
||||||
m_label_stat->SetForegroundColour(wxColour("#323A3C"));
|
m_label_stat->SetForegroundColour(wxColour("#323A3C"));
|
||||||
#if !BBL_RELEASE_TO_PUBLIC
|
#if !BBL_RELEASE_TO_PUBLIC
|
||||||
m_media_ctrl->Bind(EVT_MEDIA_CTRL_STAT, [this](auto & e) {
|
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
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue