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
535fc4ea
Commit
535fc4ea
authored
Jan 09, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xlib: don't abort if autodetection fails
(cherry picked from commit 3884bc644750dff5d9c29ca4d2c879ab9e8fd5eb)
parent
d206be7b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
include/vlc_xlib.h
include/vlc_xlib.h
+21
-21
No files found.
include/vlc_xlib.h
View file @
535fc4ea
...
...
@@ -28,29 +28,29 @@
static
inline
bool
vlc_xlib_init
(
vlc_object_t
*
obj
)
{
if
(
!
var_InheritBool
(
obj
,
"xlib"
))
return
false
;
bool
ok
=
false
;
if
(
var_InheritBool
(
obj
,
"xlib"
))
{
/* XInitThreads() can be called multiple times,
* but it is not reentrant, so we need this global lock. */
vlc_global_lock
(
VLC_XLIB_MUTEX
);
if
(
_Xglobal_lock
==
NULL
&&
unlikely
(
_XErrorFunction
!=
NULL
))
{
/* (_Xglobal_lock == NULL) => Xlib threads not initialized */
/* (_XErrorFunction != NULL) => Xlib already in use */
fprintf
(
stderr
,
"%s:%u:%s: Xlib not initialized for threads.
\n
"
"This process is probably using LibVLC incorrectly.
\n
"
"Pass
\"
--no-xlib
\"
to libvlc_new() to fix this.
\n
"
,
__FILE__
,
__LINE__
,
__func__
);
/* Initiate core meltdown */
abort
();
}
else
ok
=
XInitThreads
()
!=
0
;
else
if
(
XInitThreads
())
ok
=
true
;
vlc_global_unlock
(
VLC_XLIB_MUTEX
);
}
if
(
!
ok
)
msg_Err
(
obj
,
"Xlib not initialized for threads"
);
return
ok
;
}
...
...
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