Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
7ca27c5e
Commit
7ca27c5e
authored
May 20, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: use platformName() on Qt5 too, like on QPA
parent
73ff6ac3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+5
-1
No files found.
modules/gui/qt4/qt4.cpp
View file @
7ca27c5e
...
...
@@ -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
;
else
msg_Err
(
p_intf
,
"unknown Qt platform: %s"
,
qtu
(
platform
)
);
#elif defined (Q_WS_X11)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment