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
74d08390
Commit
74d08390
authored
Aug 25, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used aout_EnableFilter in skins2.
It avoids a race condition with aout_input_t contents.
parent
69b16593
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
31 deletions
+1
-31
modules/gui/skins2/commands/cmd_audio.cpp
modules/gui/skins2/commands/cmd_audio.cpp
+1
-31
No files found.
modules/gui/skins2/commands/cmd_audio.cpp
View file @
74d08390
...
...
@@ -30,37 +30,7 @@
void
CmdSetEqualizer
::
execute
()
{
aout_instance_t
*
pAout
=
NULL
;
playlist_t
*
pPlaylist
=
getIntf
()
->
p_sys
->
p_playlist
;
input_thread_t
*
pInput
=
playlist_CurrentInput
(
pPlaylist
);
if
(
pInput
)
pAout
=
input_GetAout
(
pInput
);
// XXX
string
filters
;
if
(
m_enable
)
{
filters
=
"equalizer"
;
}
if
(
pAout
)
{
var_SetString
(
pAout
,
"audio-filter"
,
(
char
*
)
filters
.
c_str
()
);
for
(
int
i
=
0
;
i
<
pAout
->
i_nb_inputs
;
i
++
)
{
pAout
->
pp_inputs
[
i
]
->
b_restart
=
true
;
}
}
else
{
config_PutPsz
(
getIntf
(),
"audio-filter"
,
filters
.
c_str
()
);
}
if
(
pAout
)
vlc_object_release
(
pAout
);
if
(
pInput
)
vlc_object_release
(
pInput
);
aout_EnableFilter
(
getIntf
(),
"equalizer"
,
m_enable
);
}
void
CmdVolumeChanged
::
execute
()
...
...
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