Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
88c6f5f8
Commit
88c6f5f8
authored
Dec 21, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB/apps: probe if the X server is present
parent
63bb4f96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
modules/services_discovery/xcb_apps.c
modules/services_discovery/xcb_apps.c
+16
-0
No files found.
modules/services_discovery/xcb_apps.c
View file @
88c6f5f8
...
...
@@ -37,6 +37,7 @@ typedef xcb_atom_t Atom;
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
int
vlc_sd_probe_Open
(
vlc_object_t
*
);
/*
* Module descriptor
...
...
@@ -50,6 +51,8 @@ vlc_module_begin ()
set_callbacks
(
Open
,
Close
)
add_shortcut
(
"apps"
)
VLC_SD_PROBE_SUBMODULE
vlc_module_end
()
struct
services_discovery_sys_t
...
...
@@ -66,6 +69,19 @@ static void *Run (void *);
static
void
Update
(
services_discovery_t
*
);
static
void
DelItem
(
void
*
);
static
int
vlc_sd_probe_Open
(
vlc_object_t
*
obj
)
{
vlc_probe_t
*
probe
=
(
vlc_probe_t
*
)
obj
;
char
*
display
=
var_CreateGetNonEmptyString
(
obj
,
"x11-display"
);
xcb_connection_t
*
conn
=
xcb_connect
(
display
,
NULL
);
free
(
display
);
if
(
xcb_connection_has_error
(
conn
))
return
VLC_EGENERIC
;
xcb_disconnect
(
conn
);
return
vlc_sd_probe_Add
(
probe
,
"xcb_apps"
,
N_
(
"Screen capture"
));
}
/**
* Probes and initializes.
*/
...
...
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