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
73cadd17
Commit
73cadd17
authored
May 04, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/shout: dispose encoder in destructor
parent
fb9840f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ShoutOutputPlugin.cxx
src/output/plugins/ShoutOutputPlugin.cxx
+4
-4
No files found.
src/output/plugins/ShoutOutputPlugin.cxx
View file @
73cadd17
...
@@ -44,7 +44,7 @@ struct ShoutOutput final {
...
@@ -44,7 +44,7 @@ struct ShoutOutput final {
shout_t
*
shout_conn
;
shout_t
*
shout_conn
;
shout_metadata_t
*
shout_meta
;
shout_metadata_t
*
shout_meta
;
Encoder
*
encoder
;
Encoder
*
encoder
=
nullptr
;
float
quality
=
-
2.0
;
float
quality
=
-
2.0
;
int
bitrate
=
-
1
;
int
bitrate
=
-
1
;
...
@@ -81,6 +81,9 @@ ShoutOutput::~ShoutOutput()
...
@@ -81,6 +81,9 @@ ShoutOutput::~ShoutOutput()
shout_init_count
--
;
shout_init_count
--
;
if
(
shout_init_count
==
0
)
if
(
shout_init_count
==
0
)
shout_shutdown
();
shout_shutdown
();
if
(
encoder
!=
nullptr
)
encoder
->
Dispose
();
}
}
static
const
EncoderPlugin
*
static
const
EncoderPlugin
*
...
@@ -365,9 +368,6 @@ static void
...
@@ -365,9 +368,6 @@ static void
my_shout_finish_driver
(
AudioOutput
*
ao
)
my_shout_finish_driver
(
AudioOutput
*
ao
)
{
{
ShoutOutput
*
sd
=
(
ShoutOutput
*
)
ao
;
ShoutOutput
*
sd
=
(
ShoutOutput
*
)
ao
;
sd
->
encoder
->
Dispose
();
delete
sd
;
delete
sd
;
}
}
...
...
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