Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
404b15a6
Commit
404b15a6
authored
Jul 24, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postproc: reduce lock contention in callback
parent
cfad00bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
modules/video_filter/postproc.c
modules/video_filter/postproc.c
+15
-16
No files found.
modules/video_filter/postproc.c
View file @
404b15a6
...
...
@@ -331,28 +331,27 @@ static void PPChangeMode( filter_t *p_filter, const char *psz_name,
int
i_quality
)
{
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
pp_mode
*
newmode
=
NULL
,
*
oldmode
;
vlc_mutex_lock
(
&
p_sys
->
lock
);
if
(
i_quality
>
0
)
{
pp_mode
*
pp_mode
=
pp_get_mode_by_name_and_quality
(
psz_name
?
psz_name
:
"default"
,
i_quality
);
if
(
pp_mode
)
newmode
=
pp_get_mode_by_name_and_quality
(
psz_name
?
psz_name
:
"default"
,
i_quality
);
if
(
newmode
==
NULL
)
{
pp_free_mode
(
p_sys
->
pp_mode
);
p_sys
->
pp_mode
=
pp_mode
;
}
else
msg_Warn
(
p_filter
,
"Error while changing post processing mode. "
"Keeping previous mode."
);
return
;
}
else
{
pp_free_mode
(
p_sys
->
pp_mode
);
p_sys
->
pp_mode
=
NULL
;
}
vlc_mutex_lock
(
&
p_sys
->
lock
);
oldmode
=
p_sys
->
pp_mode
;
p_sys
->
pp_mode
=
newmode
;
vlc_mutex_unlock
(
&
p_sys
->
lock
);
pp_free_mode
(
oldmode
);
}
static
int
PPQCallback
(
vlc_object_t
*
p_this
,
const
char
*
psz_var
,
...
...
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