Merge pull request 'Fix for missing video on win_arm64' (#48) from fix/libvlc-winarm64 into release/v9.2.0

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/desktop-sdk/pulls/48
This commit is contained in:
Oleg Korshul
2025-11-27 07:02:00 +00:00

View File

@ -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