Commit 7ca27c5e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: use platformName() on Qt5 too, like on QPA

parent 73ff6ac3
......@@ -520,10 +520,14 @@ static void *Thread( void *obj )
/* Check window type from the Qt platform back-end */
p_intf->p_sys->voutWindowType = VOUT_WINDOW_TYPE_INVALID;
#if defined (Q_WS_QPA)
#if defined (Q_WS_QPA) || HAS_QT5
QString platform = app.platformName();
if( platform == qfu("xcb") )
p_intf->p_sys->voutWindowType = VOUT_WINDOW_TYPE_XID;
else if( platform == qfu("windows") )
p_intf->p_sys->voutWindowType = VOUT_WINDOW_TYPE_HWND;
else if( platform == qfu("cocoa" ) )
p_intf->p_sys->voutWindowType = VOUT_WINDOW_TYPE_NSOBJECT;
msg_Err( p_intf, "unknown Qt platform: %s", qtu(platform) );
#elif defined (Q_WS_X11)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment