Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
29f2d89e
Commit
29f2d89e
authored
Jul 24, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a potential deadlock.
parent
acc16631
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
modules/misc/freetype.c
modules/misc/freetype.c
+10
-1
No files found.
modules/misc/freetype.c
View file @
29f2d89e
...
...
@@ -494,13 +494,22 @@ static void FontBuilderDetach( filter_t *p_filter, vlc_object_t *p_fontbuilder )
vlc_mutex_t
*
lock
=
var_AcquireMutex
(
"fontbuilder"
);
if
(
p_fontbuilder
)
{
const
bool
b_alive
=
vlc_object_alive
(
p_fontbuilder
);
var_DelCallback
(
p_fontbuilder
,
"build-done"
,
FontBuilderDone
,
p_filter
);
/* We wait for the thread on the first FontBuilderDetach */
if
(
vlc_object_alive
(
p_fontbuilder
)
)
if
(
b_alive
)
{
vlc_object_kill
(
p_fontbuilder
);
vlc_mutex_unlock
(
lock
);
/* We need to unlock otherwise we may not join (the thread waiting
* for the lock). It is safe to unlock as no one else will try a
* join and we have a reference on the object) */
vlc_thread_join
(
p_fontbuilder
);
vlc_mutex_lock
(
lock
);
}
vlc_object_release
(
p_fontbuilder
);
}
...
...
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