Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
9a76128f
Commit
9a76128f
authored
Aug 21, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: force XCB platform so we do not crash if QT_QPA_PLATFORM is set
parent
816b9726
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+16
-6
No files found.
modules/gui/qt4/qt4.cpp
View file @
9a76128f
...
...
@@ -42,7 +42,7 @@
#include "util/qvlcapp.hpp"
/* QVLCApplication definition */
#include "components/playlist/playlist_model.hpp"
/* for ~PLModel() */
#if defined
(Q_OS_UNIX) && !defined(Q_OS_DARWIN
)
#if defined
(QT5_HAS_X11) || defined (Q_WS_X11
)
#include <vlc_xlib.h>
#endif
...
...
@@ -317,7 +317,7 @@ vlc_module_begin ()
add_submodule
()
set_capability
(
"vout window nsobject"
,
0
)
set_callbacks
(
WindowOpen
,
WindowClose
)
#elif defined (Q
_OS_UNIX
)
#elif defined (Q
T5_HAS_X11) || defined (Q_WS_X11
)
add_submodule
()
set_capability
(
"vout window xid"
,
0
)
set_callbacks
(
WindowOpen
,
WindowClose
)
...
...
@@ -360,7 +360,7 @@ static int Open( vlc_object_t *p_this, bool isDialogProvider )
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
#if defined
(Q_OS_UNIX) && !defined(Q_OS_DARWIN
)
#if defined
(QT5_HAS_X11) || defined (Q_WS_X11
)
if
(
!
vlc_xlib_init
(
p_this
)
)
return
VLC_EGENERIC
;
...
...
@@ -466,8 +466,18 @@ static void *Thread( void *obj )
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
obj
;
MainInterface
*
p_mi
;
char
dummy
[]
=
"vlc"
;
/* for WM_CLASS */
char
*
argv
[]
=
{
dummy
,
NULL
,
};
char
vlc_name
[]
=
"vlc"
;
/* for WM_CLASS */
#ifdef QT5_HAS_X11
char
platform_parm
[]
=
"-platform"
;
char
platform_value
[]
=
"xcb"
;
#endif
char
*
argv
[]
=
{
vlc_name
,
#ifdef QT5_HAS_X11
platform_parm
,
platform_value
,
#endif
NULL
,
};
int
argc
=
sizeof
(
argv
)
/
sizeof
(
argv
[
0
])
-
1
;
Q_INIT_RESOURCE
(
vlc
);
...
...
@@ -529,7 +539,7 @@ 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) || HAS_QT5
#if
HAS_QT5 || defined (Q_WS_QPA)
QString
platform
=
app
.
platformName
();
if
(
platform
==
qfu
(
"xcb"
)
)
p_intf
->
p_sys
->
voutWindowType
=
VOUT_WINDOW_TYPE_XID
;
...
...
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