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
01a00901
Commit
01a00901
authored
May 19, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Alpha mask: thread-safety
A corner case occured if the mask were changed during initialization.
parent
da293d9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/video_filter/alphamask.c
modules/video_filter/alphamask.c
+5
-5
No files found.
modules/video_filter/alphamask.c
View file @
01a00901
...
...
@@ -108,11 +108,6 @@ static int Create( vlc_object_t *p_this )
config_ChainParse
(
p_filter
,
CFG_PREFIX
,
ppsz_filter_options
,
p_filter
->
p_cfg
);
vlc_mutex_init
(
&
p_sys
->
mask_lock
);
psz_string
=
var_CreateGetStringCommand
(
p_filter
,
CFG_PREFIX
"mask"
);
var_AddCallback
(
p_filter
,
CFG_PREFIX
"mask"
,
MaskCallback
,
p_filter
);
p_sys
->
p_mask
=
NULL
;
if
(
psz_string
&&
*
psz_string
)
{
...
...
@@ -123,6 +118,11 @@ static int Create( vlc_object_t *p_this )
}
free
(
psz_string
);
vlc_mutex_init
(
&
p_sys
->
mask_lock
);
psz_string
=
var_CreateGetStringCommand
(
p_filter
,
CFG_PREFIX
"mask"
);
var_AddCallback
(
p_filter
,
CFG_PREFIX
"mask"
,
MaskCallback
,
p_filter
);
p_filter
->
pf_video_filter
=
Filter
;
return
VLC_SUCCESS
;
...
...
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