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
334c6a54
Commit
334c6a54
authored
Aug 18, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a potential freetype deadlock as var_AcquireMutex is not recursive :(
(It probably should have been called AquireLock then)
parent
e047737d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
modules/misc/freetype.c
modules/misc/freetype.c
+10
-4
No files found.
modules/misc/freetype.c
View file @
334c6a54
...
...
@@ -247,6 +247,7 @@ static vlc_object_t *FontBuilderAttach( filter_t *p_filter, vlc_mutex_t **pp_loc
static
void
FontBuilderDetach
(
filter_t
*
p_filter
,
vlc_object_t
*
p_fontbuilder
);
static
void
*
FontBuilderThread
(
vlc_object_t
*
p_this
);
static
void
FontBuilderDestructor
(
vlc_object_t
*
p_this
);
static
void
FontBuilderGetFcConfig
(
filter_t
*
p_filter
,
vlc_object_t
*
p_fontbuilder
);
static
int
FontBuilderDone
(
vlc_object_t
*
,
const
char
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
#endif
...
...
@@ -483,7 +484,7 @@ static vlc_object_t *FontBuilderAttach( filter_t *p_filter, vlc_mutex_t **pp_loc
if
(
p_fontbuilder
)
{
var_AddCallback
(
p_fontbuilder
,
"build-done"
,
FontBuilderDone
,
p_filter
);
var_TriggerCallback
(
p_fontbuilder
,
"build-done"
);
FontBuilderGetFcConfig
(
p_filter
,
p_fontbuilder
);
}
vlc_mutex_unlock
(
p_lock
);
*
pp_lock
=
p_lock
;
...
...
@@ -550,6 +551,13 @@ static void* FontBuilderThread( vlc_object_t *p_this )
}
return
NULL
;
}
static
void
FontBuilderGetFcConfig
(
filter_t
*
p_filter
,
vlc_object_t
*
p_fontbuilder
)
{
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
p_sys
->
p_fontconfig
=
p_fontbuilder
->
p_private
;
p_sys
->
b_fontconfig_ok
=
p_fontbuilder
->
p_private
!=
NULL
;
}
static
void
FontBuilderDestructor
(
vlc_object_t
*
p_this
)
{
FcConfig
*
p_fontconfig
=
p_this
->
p_private
;
...
...
@@ -561,14 +569,12 @@ static int FontBuilderDone( vlc_object_t *p_this, const char *psz_var,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
param
)
{
filter_t
*
p_filter
=
param
;
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
if
(
newval
.
b_bool
)
{
vlc_mutex_t
*
p_lock
=
var_AcquireMutex
(
"fontbuilder"
);
p_sys
->
b_fontconfig_ok
=
true
;
p_sys
->
p_fontconfig
=
p_this
->
p_private
;
FontBuilderGetFcConfig
(
p_filter
,
p_this
);
vlc_mutex_unlock
(
p_lock
);
}
...
...
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