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
e9b987f4
Commit
e9b987f4
authored
May 28, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlccore: Don't attempt to use vlc_thread_set_priority() before the config are initialized.
This fixes a crash on Mac OS X.
parent
80206750
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/libvlc-common.c
src/libvlc-common.c
+7
-3
No files found.
src/libvlc-common.c
View file @
e9b987f4
...
...
@@ -208,9 +208,7 @@ libvlc_int_t * libvlc_InternalCreate( void )
/* Initialize mutexes */
vlc_mutex_init
(
&
priv
->
timer_lock
);
vlc_mutex_init
(
&
priv
->
config_lock
);
#ifdef __APPLE__
vlc_thread_set_priority
(
p_libvlc
,
VLC_THREAD_PRIORITY_LOW
);
#endif
/* Store data for the non-reentrant API */
p_static_vlc
=
p_libvlc
;
...
...
@@ -281,6 +279,12 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
return
VLC_EGENERIC
;
}
#ifdef __APPLE__
/* vlc_thread_set_priority needs to query the config,
* so this is the earliest moment where we can set this */
vlc_thread_set_priority
(
p_libvlc
,
VLC_THREAD_PRIORITY_LOW
);
#endif
/* Check for short help option */
if
(
config_GetInt
(
p_libvlc
,
"help"
)
>
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