Enable overlay widgets on supported platforms only

Windows and Linux when using VLC video, tested when
using both Qt5 and Qt6.
All platforms when using Qt6 video, macOS is experimental,
more testing is required.
This commit is contained in:
Alejandro Martinez
2025-03-17 16:35:12 -03:00
parent 5c1eacee71
commit a59805e0b5

View File

@@ -126,7 +126,7 @@ VideoWindow::VideoWindow(Context *context) :
layout->addWidget(container);
#endif
#if defined(WIN32) || defined(Q_OS_LINUX)
#if defined(GC_VIDEO_QT6) || defined (GC_VIDEO_VLC) && (defined(WIN32) || defined(Q_OS_LINUX))
if (init) {
// Read the video layouts just to list the names for the layout selector
readVideoLayout(-1);