[vlc-devel] [PATCH 1/5] doc: QtPlayer: add QWindowsIntegrationPlugin plugin

Steve Lhomme robux4 at ycbcr.xyz
Fri Feb 26 15:15:03 UTC 2021


Similar to the one in the QtGl sample.
---
 doc/libvlc/QtPlayer/main.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/doc/libvlc/QtPlayer/main.cpp b/doc/libvlc/QtPlayer/main.cpp
index 4ebf3f943c8..98b1668bd83 100644
--- a/doc/libvlc/QtPlayer/main.cpp
+++ b/doc/libvlc/QtPlayer/main.cpp
@@ -12,6 +12,11 @@
     #include <X11/Xlib.h>
 #endif
 
+#ifdef QT_STATIC
+# include <QtPlugin>
+Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
+#endif
+
 int main(int argc, char *argv[]) {
 #ifdef Q_WS_X11
     XInitThreads();
-- 
2.29.2



More information about the vlc-devel mailing list