Skip to content

Commit 6b4e67f

Browse files
Fix build error: disambiguate setVideoOutput(nullptr) call
Co-authored-by: YimingZhanshen <76594627+YimingZhanshen@users.noreply.github.com>
1 parent fd5bcf6 commit 6b4e67f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Gui/MainWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ void MainWindow::PlayAnimation()
481481
// Force recreation of the native window handle to ensure proper rendering
482482
// Calling winId() for its side effect - it creates/retrieves the native window handle
483483
(void)_videoWidget->winId();
484-
_mediaPlayer->setVideoOutput(nullptr);
484+
_mediaPlayer->setVideoOutput(static_cast<QVideoWidget*>(nullptr));
485485
_mediaPlayer->setVideoOutput(_videoWidget);
486486
_mediaPlayer->play();
487487
}

0 commit comments

Comments
 (0)