Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
744a8857
Commit
744a8857
authored
May 16, 2018
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11: remove redundant variable
parent
4be2d8e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/video_output/xcb/x11.c
modules/video_output/xcb/x11.c
+2
-4
No files found.
modules/video_output/xcb/x11.c
View file @
744a8857
...
...
@@ -64,7 +64,6 @@ vlc_module_end ()
struct
vout_display_sys_t
{
xcb_connection_t
*
conn
;
vout_window_t
*
embed
;
/* VLC window */
xcb_window_t
window
;
/* drawable X window */
xcb_gcontext_t
gc
;
/* context to put images */
...
...
@@ -113,8 +112,7 @@ static int Open (vlc_object_t *obj)
/* Get window, connect to X server */
xcb_connection_t
*
conn
;
const
xcb_screen_t
*
scr
;
sys
->
embed
=
vlc_xcb_parent_Create
(
vd
,
&
conn
,
&
scr
);
if
(
sys
->
embed
==
NULL
)
if
(
vlc_xcb_parent_Create
(
vd
,
&
conn
,
&
scr
)
==
NULL
)
{
free
(
sys
);
return
VLC_EGENERIC
;
...
...
@@ -271,7 +269,7 @@ found_format:;
xcb_create_pixmap
(
conn
,
sys
->
depth
,
pixmap
,
scr
->
root
,
1
,
1
);
c
=
xcb_create_window_checked
(
conn
,
sys
->
depth
,
sys
->
window
,
sys
->
embed
->
handle
.
xid
,
0
,
0
,
vd
->
cfg
->
window
->
handle
.
xid
,
0
,
0
,
vd
->
cfg
->
display
.
width
,
vd
->
cfg
->
display
.
height
,
0
,
XCB_WINDOW_CLASS_INPUT_OUTPUT
,
...
...
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