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
59ac9d39
Commit
59ac9d39
authored
Jan 08, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/recorder: move encoder_finish() call to destructor
parent
ec41caad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
RecorderOutputPlugin.cxx
src/output/plugins/RecorderOutputPlugin.cxx
+7
-10
No files found.
src/output/plugins/RecorderOutputPlugin.cxx
View file @
59ac9d39
...
...
@@ -56,8 +56,14 @@ struct RecorderOutput {
RecorderOutput
()
:
base
(
recorder_output_plugin
),
encoder
(
nullptr
),
path
(
AllocatedPath
::
Null
())
{}
~
RecorderOutput
()
{
if
(
encoder
!=
nullptr
)
encoder_finish
(
encoder
);
}
bool
Initialize
(
const
config_param
&
param
,
Error
&
error_r
)
{
return
base
.
Configure
(
param
,
error_r
);
}
...
...
@@ -133,15 +139,6 @@ RecorderOutput::Create(const config_param ¶m, Error &error)
return
recorder
;
}
static
void
recorder_output_finish
(
AudioOutput
*
ao
)
{
RecorderOutput
*
recorder
=
(
RecorderOutput
*
)
ao
;
encoder_finish
(
recorder
->
encoder
);
delete
recorder
;
}
inline
bool
RecorderOutput
::
EncoderToFile
(
Error
&
error
)
{
...
...
@@ -241,7 +238,7 @@ const struct AudioOutputPlugin recorder_output_plugin = {
"recorder"
,
nullptr
,
&
Wrapper
::
Init
,
recorder_output_f
inish
,
&
Wrapper
::
F
inish
,
nullptr
,
nullptr
,
&
Wrapper
::
Open
,
...
...
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