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
0227af5b
Commit
0227af5b
authored
Jan 04, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/Filtered: remove BeginDestroy()
All it does is "sometimes" close the mixer, but that is also done in the destructor.
parent
192f4240
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
11 deletions
+0
-11
Control.cxx
src/output/Control.cxx
+0
-2
Filtered.hxx
src/output/Filtered.hxx
+0
-2
Finish.cxx
src/output/Finish.cxx
+0
-7
No files found.
src/output/Control.cxx
View file @
0227af5b
...
...
@@ -371,8 +371,6 @@ AudioOutputControl::LockCloseWait() noexcept
void
AudioOutputControl
::
BeginDestroy
()
noexcept
{
output
->
BeginDestroy
();
if
(
thread
.
IsDefined
())
{
const
std
::
lock_guard
<
Mutex
>
protect
(
mutex
);
CommandAsync
(
Command
::
KILL
);
...
...
src/output/Filtered.hxx
View file @
0227af5b
...
...
@@ -141,8 +141,6 @@ public:
MixerListener
&
mixer_listener
,
const
ConfigBlock
&
block
);
void
BeginDestroy
()
noexcept
;
const
char
*
GetName
()
const
{
return
name
;
}
...
...
src/output/Finish.cxx
View file @
0227af5b
...
...
@@ -28,10 +28,3 @@ FilteredAudioOutput::~FilteredAudioOutput()
if
(
mixer
!=
nullptr
)
mixer_free
(
mixer
);
}
void
FilteredAudioOutput
::
BeginDestroy
()
noexcept
{
if
(
mixer
!=
nullptr
)
mixer_auto_close
(
mixer
);
}
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