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
90b0c4d1
Commit
90b0c4d1
authored
Jul 11, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB: use var_Inherit*()
parent
6bbabbb5
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
19 deletions
+19
-19
modules/access/screen/xcb.c
modules/access/screen/xcb.c
+7
-7
modules/services_discovery/xcb_apps.c
modules/services_discovery/xcb_apps.c
+2
-2
modules/video_output/xcb/common.c
modules/video_output/xcb/common.c
+1
-1
modules/video_output/xcb/events.c
modules/video_output/xcb/events.c
+1
-1
modules/video_output/xcb/window.c
modules/video_output/xcb/window.c
+6
-6
modules/video_output/xcb/xvideo.c
modules/video_output/xcb/xvideo.c
+2
-2
No files found.
modules/access/screen/xcb.c
View file @
90b0c4d1
...
...
@@ -132,7 +132,7 @@ static int Open (vlc_object_t *obj)
demux
->
p_sys
=
p_sys
;
/* Connect to X server */
char
*
display
=
var_
CreateGetNonEmpty
String
(
obj
,
"x11-display"
);
char
*
display
=
var_
Inherit
String
(
obj
,
"x11-display"
);
int
snum
;
xcb_connection_t
*
conn
=
xcb_connect
(
display
,
&
snum
);
free
(
display
);
...
...
@@ -182,14 +182,14 @@ static int Open (vlc_object_t *obj)
goto
error
;
/* Window properties */
p_sys
->
x
=
var_
CreateGe
tInteger
(
obj
,
"screen-left"
);
p_sys
->
y
=
var_
CreateGe
tInteger
(
obj
,
"screen-top"
);
p_sys
->
w
=
var_
CreateGe
tInteger
(
obj
,
"screen-width"
);
p_sys
->
h
=
var_
CreateGe
tInteger
(
obj
,
"screen-height"
);
p_sys
->
follow_mouse
=
var_
CreateGe
tBool
(
obj
,
"screen-follow-mouse"
);
p_sys
->
x
=
var_
Inheri
tInteger
(
obj
,
"screen-left"
);
p_sys
->
y
=
var_
Inheri
tInteger
(
obj
,
"screen-top"
);
p_sys
->
w
=
var_
Inheri
tInteger
(
obj
,
"screen-width"
);
p_sys
->
h
=
var_
Inheri
tInteger
(
obj
,
"screen-height"
);
p_sys
->
follow_mouse
=
var_
Inheri
tBool
(
obj
,
"screen-follow-mouse"
);
/* Initializes format */
p_sys
->
rate
=
var_
CreateGe
tFloat
(
obj
,
"screen-fps"
);
p_sys
->
rate
=
var_
Inheri
tFloat
(
obj
,
"screen-fps"
);
if
(
!
p_sys
->
rate
)
goto
error
;
p_sys
->
interval
=
(
float
)
CLOCK_FREQ
/
p_sys
->
rate
;
...
...
modules/services_discovery/xcb_apps.c
View file @
90b0c4d1
...
...
@@ -74,7 +74,7 @@ static int vlc_sd_probe_Open (vlc_object_t *obj)
{
vlc_probe_t
*
probe
=
(
vlc_probe_t
*
)
obj
;
char
*
display
=
var_
CreateGetNonEmpty
String
(
obj
,
"x11-display"
);
char
*
display
=
var_
Inherit
String
(
obj
,
"x11-display"
);
xcb_connection_t
*
conn
=
xcb_connect
(
display
,
NULL
);
free
(
display
);
if
(
xcb_connection_has_error
(
conn
))
...
...
@@ -97,7 +97,7 @@ static int Open (vlc_object_t *obj)
sd
->
p_sys
=
p_sys
;
/* Connect to X server */
char
*
display
=
var_
CreateGetNonEmpty
String
(
obj
,
"x11-display"
);
char
*
display
=
var_
Inherit
String
(
obj
,
"x11-display"
);
int
snum
;
xcb_connection_t
*
conn
=
xcb_connect
(
display
,
&
snum
);
free
(
display
);
...
...
modules/video_output/xcb/common.c
View file @
90b0c4d1
...
...
@@ -160,7 +160,7 @@ error:
/** Check MIT-SHM shared memory support */
void
CheckSHM
(
vlc_object_t
*
obj
,
xcb_connection_t
*
conn
,
bool
*
restrict
pshm
)
{
bool
shm
=
var_
CreateGe
tBool
(
obj
,
"x11-shm"
)
>
0
;
bool
shm
=
var_
Inheri
tBool
(
obj
,
"x11-shm"
)
>
0
;
if
(
shm
)
{
xcb_shm_query_version_cookie_t
ck
;
...
...
modules/video_output/xcb/events.c
View file @
90b0c4d1
...
...
@@ -100,7 +100,7 @@ void RegisterMouseEvents (vlc_object_t *obj, xcb_connection_t *conn,
xcb_change_window_attributes
(
conn
,
wnd
,
XCB_CW_EVENT_MASK
,
&
value
);
/* Try to subscribe to click events */
/* (only one X11 client can get them, so might not work) */
if
(
var_
CreateGe
tBool
(
obj
,
"mouse-events"
))
if
(
var_
Inheri
tBool
(
obj
,
"mouse-events"
))
{
value
|=
XCB_EVENT_MASK_BUTTON_PRESS
|
XCB_EVENT_MASK_BUTTON_RELEASE
;
...
...
modules/video_output/xcb/window.c
View file @
90b0c4d1
...
...
@@ -217,7 +217,7 @@ static int Open (vlc_object_t *obj)
return
VLC_ENOMEM
;
/* Connect to X */
char
*
display
=
var_
CreateGetNonEmpty
String
(
wnd
,
"x11-display"
);
char
*
display
=
var_
Inherit
String
(
wnd
,
"x11-display"
);
int
snum
;
xcb_connection_t
*
conn
=
xcb_connect
(
display
,
&
snum
);
...
...
@@ -272,7 +272,7 @@ static int Open (vlc_object_t *obj)
wnd
->
sys
=
p_sys
;
p_sys
->
conn
=
conn
;
if
(
var_
CreateGe
tBool
(
obj
,
"keyboard-events"
))
if
(
var_
Inheri
tBool
(
obj
,
"keyboard-events"
))
p_sys
->
keys
=
CreateKeyHandler
(
obj
,
conn
);
else
p_sys
->
keys
=
NULL
;
...
...
@@ -310,7 +310,7 @@ static int Open (vlc_object_t *obj)
xcb_atom_t
utf8
=
get_atom
(
conn
,
utf8_string_ck
);
xcb_atom_t
net_wm_name
=
get_atom
(
conn
,
net_wm_name_ck
);
char
*
title
=
var_
CreateGetNonEmpty
String
(
wnd
,
"video-title"
);
char
*
title
=
var_
Inherit
String
(
wnd
,
"video-title"
);
if
(
title
)
{
set_string
(
conn
,
window
,
utf8
,
net_wm_name
,
title
);
...
...
@@ -339,7 +339,7 @@ static int Open (vlc_object_t *obj)
/* Make the window visible */
xcb_map_window
(
conn
,
window
);
if
(
var_
CreateGe
tBool
(
obj
,
"video-wallpaper"
))
if
(
var_
Inheri
tBool
(
obj
,
"video-wallpaper"
))
{
vout_window_SetState
(
wnd
,
VOUT_WINDOW_STATE_BELOW
);
vout_window_SetFullScreen
(
wnd
,
true
);
...
...
@@ -605,7 +605,7 @@ static int EmOpen (vlc_object_t *obj)
{
vout_window_t
*
wnd
=
(
vout_window_t
*
)
obj
;
xcb_window_t
window
=
var_
CreateGe
tInteger
(
obj
,
"drawable-xid"
);
xcb_window_t
window
=
var_
Inheri
tInteger
(
obj
,
"drawable-xid"
);
if
(
window
==
0
)
return
VLC_EGENERIC
;
var_Destroy
(
obj
,
"drawable-xid"
);
...
...
@@ -635,7 +635,7 @@ static int EmOpen (vlc_object_t *obj)
p_sys
->
root
=
geo
->
root
;
free
(
geo
);
if
(
var_
CreateGe
tBool
(
obj
,
"keyboard-events"
))
if
(
var_
Inheri
tBool
(
obj
,
"keyboard-events"
))
{
p_sys
->
keys
=
CreateKeyHandler
(
obj
,
conn
);
if
(
p_sys
->
keys
!=
NULL
)
...
...
modules/video_output/xcb/xvideo.c
View file @
90b0c4d1
...
...
@@ -297,7 +297,7 @@ static int Open (vlc_object_t *obj)
vout_display_t
*
vd
=
(
vout_display_t
*
)
obj
;
vout_display_sys_t
*
p_sys
=
malloc
(
sizeof
(
*
p_sys
));
if
(
!
var_
CreateGe
tBool
(
obj
,
"overlay"
))
if
(
!
var_
Inheri
tBool
(
obj
,
"overlay"
))
return
VLC_EGENERIC
;
if
(
p_sys
==
NULL
)
return
VLC_ENOMEM
;
...
...
@@ -336,7 +336,7 @@ static int Open (vlc_object_t *obj)
if
(
adaptors
==
NULL
)
goto
error
;
int
forced_adaptor
=
var_
CreateGe
tInteger
(
obj
,
"xvideo-adaptor"
);
int
forced_adaptor
=
var_
Inheri
tInteger
(
obj
,
"xvideo-adaptor"
);
/* */
video_format_t
fmt
=
vd
->
fmt
;
...
...
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