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
27c589da
Commit
27c589da
authored
Nov 04, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter/chain: remove unused field ChainFilter::Child::name
parent
6484af47
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
ChainFilterPlugin.cxx
src/filter/plugins/ChainFilterPlugin.cxx
+5
-8
No files found.
src/filter/plugins/ChainFilterPlugin.cxx
View file @
27c589da
...
@@ -31,12 +31,10 @@
...
@@ -31,12 +31,10 @@
class
ChainFilter
final
:
public
Filter
{
class
ChainFilter
final
:
public
Filter
{
struct
Child
{
struct
Child
{
const
char
*
name
;
std
::
unique_ptr
<
Filter
>
filter
;
std
::
unique_ptr
<
Filter
>
filter
;
Child
(
const
char
*
_name
,
explicit
Child
(
std
::
unique_ptr
<
Filter
>
&&
_filter
)
noexcept
std
::
unique_ptr
<
Filter
>
_filter
)
noexcept
:
filter
(
std
::
move
(
_filter
))
{}
:
name
(
_name
),
filter
(
std
::
move
(
_filter
))
{}
};
};
std
::
list
<
Child
>
children
;
std
::
list
<
Child
>
children
;
...
@@ -50,13 +48,12 @@ public:
...
@@ -50,13 +48,12 @@ public:
explicit
ChainFilter
(
AudioFormat
_audio_format
)
explicit
ChainFilter
(
AudioFormat
_audio_format
)
:
Filter
(
_audio_format
)
{}
:
Filter
(
_audio_format
)
{}
void
Append
(
const
char
*
name
,
void
Append
(
std
::
unique_ptr
<
Filter
>
filter
)
noexcept
{
std
::
unique_ptr
<
Filter
>
filter
)
noexcept
{
assert
(
out_audio_format
.
IsValid
());
assert
(
out_audio_format
.
IsValid
());
out_audio_format
=
filter
->
GetOutAudioFormat
();
out_audio_format
=
filter
->
GetOutAudioFormat
();
assert
(
out_audio_format
.
IsValid
());
assert
(
out_audio_format
.
IsValid
());
children
.
emplace_back
(
name
,
std
::
move
(
filter
));
children
.
emplace_back
(
std
::
move
(
filter
));
RewindFlush
();
RewindFlush
();
}
}
...
@@ -121,7 +118,7 @@ PreparedChainFilter::Open(AudioFormat &in_audio_format)
...
@@ -121,7 +118,7 @@ PreparedChainFilter::Open(AudioFormat &in_audio_format)
for
(
auto
&
child
:
children
)
{
for
(
auto
&
child
:
children
)
{
AudioFormat
audio_format
=
chain
->
GetOutAudioFormat
();
AudioFormat
audio_format
=
chain
->
GetOutAudioFormat
();
chain
->
Append
(
child
.
name
,
child
.
Open
(
audio_format
));
chain
->
Append
(
child
.
Open
(
audio_format
));
}
}
return
chain
;
return
chain
;
...
...
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