FIX: decode video to wxImage on Linux

Change-Id: I5e332a1b0622b3dfc70ac5c4c3bfa62b3411ebdc
Jira: none
(cherry picked from commit c787ba921a31f259e8eb23fd59f178e96279caf9)
This commit is contained in:
chunmao.guo
2026-08-13 09:12:22 +08:00
committed by Noisyfox
parent be2be5c831
commit 240227de79
3 changed files with 35 additions and 13 deletions
+6 -1
View File
@@ -240,9 +240,14 @@ void wxMediaCtrl3::PlayThread()
if (error == 0) {
auto frame_size = m_frame_size;
lk.unlock();
wxBitmap bm;
decoder.decode(sample);
#ifdef _WIN32
wxBitmap bm;
decoder.toWxBitmap(bm, frame_size);
#else
wxImage bm;
decoder.toWxImage(bm, frame_size);
#endif
lk.lock();
if (m_url != url) {
error = 1;