[vlc-devel] [PATCH] qt: don't handle the X11 Window type if X11 is not supported

Steve Lhomme robux4 at ycbcr.xyz
Mon Nov 25 17:01:09 CET 2019


---
 modules/gui/qt/components/interface_widgets.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt/components/interface_widgets.cpp b/modules/gui/qt/components/interface_widgets.cpp
index 3105d5466eb..9f98673d6c7 100644
--- a/modules/gui/qt/components/interface_widgets.cpp
+++ b/modules/gui/qt/components/interface_widgets.cpp
@@ -156,10 +156,12 @@ void VideoWidget::request( struct vout_window_t *p_wnd )
     p_wnd->type = p_intf->p_sys->voutWindowType;
     switch( p_wnd->type )
     {
+#if defined (QT5_HAS_X11)
         case VOUT_WINDOW_TYPE_XID:
             p_wnd->handle.xid = stable->winId();
             p_wnd->display.x11 = NULL;
             break;
+#endif
         case VOUT_WINDOW_TYPE_HWND:
             p_wnd->handle.hwnd = (void *)stable->winId();
             break;
-- 
2.17.1



More information about the vlc-devel mailing list