Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
193dd716
Commit
193dd716
authored
8 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/Thread: remember the original filter audio format in local variable
parent
6c293a3d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
OutputThread.cxx
src/output/OutputThread.cxx
+5
-4
No files found.
src/output/OutputThread.cxx
View file @
193dd716
...
...
@@ -111,8 +111,7 @@ AudioOutput::Open()
f
=
source
.
Open
(
request
.
audio_format
,
*
request
.
pipe
,
prepared_replay_gain_filter
,
prepared_other_replay_gain_filter
,
prepared_filter
)
.
WithMask
(
config_audio_format
);
prepared_filter
);
if
(
mixer
!=
nullptr
&&
mixer
->
IsPlugin
(
software_mixer_plugin
))
software_mixer_set_filter
(
*
mixer
,
volume_filter
.
Get
());
...
...
@@ -121,14 +120,16 @@ AudioOutput::Open()
name
,
plugin
.
name
));
}
if
(
open
&&
f
!=
filter_audio_format
)
{
const
auto
cf
=
f
.
WithMask
(
config_audio_format
);
if
(
open
&&
cf
!=
filter_audio_format
)
{
/* if the filter's output format changes, the output
must be reopened as well */
CloseOutput
(
true
);
open
=
false
;
}
filter_audio_format
=
f
;
filter_audio_format
=
c
f
;
if
(
!
open
)
{
try
{
...
...
This diff is collapsed.
Click to expand it.
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