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
1590cffc
Commit
1590cffc
authored
Feb 02, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use --x11-display whenever calling XOpenDisplay (except Qt4 this far)
parent
edf32d6b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
modules/access/screen/x11.c
modules/access/screen/x11.c
+3
-1
modules/control/globalhotkeys/x11.c
modules/control/globalhotkeys/x11.c
+3
-1
modules/gui/skins2/x11/x11_display.cpp
modules/gui/skins2/x11/x11_display.cpp
+3
-1
modules/video_filter/panoramix.c
modules/video_filter/panoramix.c
+4
-1
No files found.
modules/access/screen/x11.c
View file @
1590cffc
...
...
@@ -41,11 +41,13 @@ int screen_InitCapture( demux_t *p_demux )
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
Display
*
p_display
;
char
*
psz_display
=
var_CreateGetNonEmptyString
(
p_demux
,
"x11-display"
);
XWindowAttributes
win_info
;
int
i_chroma
;
/* Open the display */
p_display
=
XOpenDisplay
(
NULL
);
p_display
=
XOpenDisplay
(
psz_display
);
free
(
psz_display
);
if
(
!
p_display
)
{
msg_Err
(
p_demux
,
"cannot open display"
);
...
...
modules/control/globalhotkeys/x11.c
View file @
1590cffc
...
...
@@ -81,8 +81,10 @@ static int Open( vlc_object_t *p_this )
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
intf_sys_t
*
p_sys
;
char
*
psz_display
=
var_CreateGetNonEmptyString
(
p_intf
,
"x11-display"
);
Display
*
p_display
=
XOpenDisplay
(
NULL
);
Display
*
p_display
=
XOpenDisplay
(
psz_display
);
free
(
psz_display
);
if
(
!
p_display
)
return
VLC_EGENERIC
;
XSetErrorHandler
(
X11ErrorHandler
);
...
...
modules/gui/skins2/x11/x11_display.cpp
View file @
1590cffc
...
...
@@ -53,8 +53,10 @@
X11Display
::
X11Display
(
intf_thread_t
*
pIntf
)
:
SkinObject
(
pIntf
),
m_mainWindow
(
0
),
m_gc
(
NULL
),
m_colormap
(
0
)
{
char
*
psz_display
=
var_CreateGetNonEmptyString
(
pIntf
,
"x11-display"
);
// Open a connection to the X Server
m_pDisplay
=
XOpenDisplay
(
NULL
);
m_pDisplay
=
XOpenDisplay
(
psz_display
);
free
(
psz_display
);
if
(
m_pDisplay
==
NULL
)
{
...
...
modules/video_filter/panoramix.c
View file @
1590cffc
...
...
@@ -558,7 +558,10 @@ static int AdjustHeight( vout_thread_t *p_vout )
i_window_width
=
GetSystemMetrics
(
SM_CXSCREEN
);
i_window_height
=
GetSystemMetrics
(
SM_CYSCREEN
);
#else
Display
*
p_display
=
XOpenDisplay
(
""
);
char
*
psz_display
=
var_CreateGetNonEmptyString
(
p_vout
,
"x11-display"
);
Display
*
p_display
=
XOpenDisplay
(
psz_display
);
free
(
psz_display
);
if
(
p_vout
->
p_sys
->
b_xinerama
)
{
i_window_width
=
DisplayWidth
(
p_display
,
0
)
/
p_vout
->
p_sys
->
i_col
;
...
...
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