From 755e1ab429d399534481475c4dab11a299a6de31 Mon Sep 17 00:00:00 2001 From: Mikhail Lobotskiy Date: Wed, 26 Nov 2025 10:15:10 -0800 Subject: [PATCH] Fix for missing video on win_arm64 --- .../videoplayerlib/src/qascvideoview.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ChromiumBasedEditors/videoplayerlib/src/qascvideoview.cpp b/ChromiumBasedEditors/videoplayerlib/src/qascvideoview.cpp index 289d9045..2f956230 100644 --- a/ChromiumBasedEditors/videoplayerlib/src/qascvideoview.cpp +++ b/ChromiumBasedEditors/videoplayerlib/src/qascvideoview.cpp @@ -589,10 +589,17 @@ QWidget* QAscVideoView::getMainWindow() void QAscVideoView::slotVideoAvailableChanged(bool isVideoAvailable) { if (m_pInternal->m_bIsPresentationMode && !m_pInternal->m_bIsPresentationModeMediaTypeSended) - { + { +#ifndef USE_VLC_LIBRARY m_pInternal->m_bIsPresentationModeMediaTypeSended = true; +#endif + // for libVLC isAudio() may return `true` while the video is buffering, + // so this slot might be called several times if (!m_pInternal->m_pPlayer->isAudio()) { +#ifdef USE_VLC_LIBRARY + m_pInternal->m_bIsPresentationModeMediaTypeSended = true; +#endif this->show(); Footer()->show(); // raise all widgets in order to prevent weird behavior with footer being rendered above the video but still being inactive