Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
65ede56b
Commit
65ede56b
authored
Jan 30, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Name another anonynous union
parent
e175dcbb
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
include/vlc_vout_window.h
include/vlc_vout_window.h
+2
-2
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+1
-1
modules/video_output/xcb/common.c
modules/video_output/xcb/common.c
+1
-1
modules/video_output/xcb/glx.c
modules/video_output/xcb/glx.c
+1
-1
modules/video_output/xcb/window.c
modules/video_output/xcb/window.c
+2
-2
src/video_output/window.c
src/video_output/window.c
+1
-1
No files found.
include/vlc_vout_window.h
View file @
65ede56b
...
...
@@ -94,8 +94,8 @@ struct vout_window_t {
/* display server (mandatory) */
union
{
char
*
x11
_display
;
/* X11 display (NULL = use default) */
};
char
*
x11
;
/* X11 display (NULL = use default) */
}
display
;
/* Control on the module (mandatory)
*
...
...
modules/gui/qt4/qt4.cpp
View file @
65ede56b
...
...
@@ -540,7 +540,7 @@ static int WindowOpen( vlc_object_t *p_obj )
p_wnd
->
handle
.
xid
=
p_mi
->
getVideo
(
&
i_x
,
&
i_y
,
&
i_width
,
&
i_height
);
if
(
!
p_wnd
->
handle
.
xid
)
return
VLC_EGENERIC
;
p_wnd
->
x11_display
=
x11_display
;
p_wnd
->
display
.
x11
=
x11_display
;
#elif defined (Q_WS_WIN)
p_wnd
->
handle
.
hwnd
=
p_mi
->
getVideo
(
&
i_x
,
&
i_y
,
&
i_width
,
&
i_height
);
...
...
modules/video_output/xcb/common.c
View file @
65ede56b
...
...
@@ -135,7 +135,7 @@ vout_window_t *GetWindow (vout_display_t *vd,
return
NULL
;
}
xcb_connection_t
*
conn
=
Connect
(
VLC_OBJECT
(
vd
),
wnd
->
x11_display
);
xcb_connection_t
*
conn
=
Connect
(
VLC_OBJECT
(
vd
),
wnd
->
display
.
x11
);
if
(
conn
==
NULL
)
goto
error
;
*
pconn
=
conn
;
...
...
modules/video_output/xcb/glx.c
View file @
65ede56b
...
...
@@ -220,7 +220,7 @@ static int Open (vlc_object_t *obj)
}
/* Connect to X server */
Display
*
dpy
=
XOpenDisplay
(
sys
->
embed
->
x11_display
);
Display
*
dpy
=
XOpenDisplay
(
sys
->
embed
->
display
.
x11
);
if
(
dpy
==
NULL
)
{
vout_display_DeleteWindow
(
vd
,
sys
->
embed
);
...
...
modules/video_output/xcb/window.c
View file @
65ede56b
...
...
@@ -265,7 +265,7 @@ static int Open (vlc_object_t *obj)
}
wnd
->
handle
.
xid
=
window
;
wnd
->
x11_display
=
display
;
wnd
->
display
.
x11
=
display
;
wnd
->
control
=
Control
;
wnd
->
sys
=
p_sys
;
...
...
@@ -374,7 +374,7 @@ static void Close (vlc_object_t *obj)
DestroyKeyHandler
(
p_sys
->
keys
);
}
xcb_disconnect
(
conn
);
free
(
wnd
->
x11_display
);
free
(
wnd
->
display
.
x11
);
free
(
p_sys
);
}
...
...
src/video_output/window.c
View file @
65ede56b
...
...
@@ -67,7 +67,7 @@ vout_window_t *vout_window_New(vlc_object_t *obj,
case
VOUT_WINDOW_TYPE_XID
:
type
=
"vout window xid"
;
window
->
handle
.
xid
=
0
;
window
->
x11_display
=
NULL
;
window
->
display
.
x11
=
NULL
;
break
;
default:
assert
(
0
);
...
...
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