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
b4cd28b3
Commit
b4cd28b3
authored
May 22, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
equalizer: reduce PreampCallback contention scope
parent
991d2ebf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
modules/audio_filter/equalizer.c
modules/audio_filter/equalizer.c
+8
-6
No files found.
modules/audio_filter/equalizer.c
View file @
b4cd28b3
...
...
@@ -554,16 +554,18 @@ static int PreampCallback( vlc_object_t *p_this, char const *psz_cmd,
{
VLC_UNUSED
(
p_this
);
VLC_UNUSED
(
psz_cmd
);
VLC_UNUSED
(
oldval
);
filter_sys_t
*
p_sys
=
p_data
;
float
preamp
;
if
(
newval
.
f_float
<
-
20
.
0
f
)
newval
.
f_float
=
-
20
.
0
f
;
else
if
(
newval
.
f_float
>
20
.
0
f
)
newval
.
f_float
=
20
.
0
f
;
if
(
newval
.
f_float
<
-
20
.
f
)
preamp
=
.
1
f
;
else
if
(
newval
.
f_float
<
20
.
f
)
preamp
=
powf
(
10
.
f
,
newval
.
f_float
/
20
.
f
);
else
preamp
=
10
.
f
;
vlc_mutex_lock
(
&
p_sys
->
lock
);
p_sys
->
f_gamp
=
p
owf
(
10
.
0
f
,
newval
.
f_float
/
20
.
0
f
)
;
p_sys
->
f_gamp
=
p
reamp
;
vlc_mutex_unlock
(
&
p_sys
->
lock
);
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