diff options
author | Max Kellermann <max@duempel.org> | 2013-02-01 18:40:36 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-02-02 09:34:07 +0100 |
commit | a9ce0218c1879a752c9d9ec6ef21fcf44eab51ab (patch) | |
tree | f30de05c9f0a45906d31d2d4a3dad2281fe8d49c /src/OutputFinish.cxx | |
parent | 7bb5a960fde46363adf888db5b05b7b883d2b16b (diff) |
FilterInternal: convert struct filter to a OO interface
Diffstat (limited to 'src/OutputFinish.cxx')
-rw-r--r-- | src/OutputFinish.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/OutputFinish.cxx b/src/OutputFinish.cxx index f5a1f9921..8b9480b88 100644 --- a/src/OutputFinish.cxx +++ b/src/OutputFinish.cxx @@ -25,7 +25,7 @@ extern "C" { #include "mixer_control.h" } -#include "FilterPlugin.hxx" +#include "FilterInternal.hxx" #include <assert.h> @@ -42,13 +42,9 @@ ao_base_finish(struct audio_output *ao) g_cond_free(ao->cond); g_mutex_free(ao->mutex); - if (ao->replay_gain_filter != NULL) - filter_free(ao->replay_gain_filter); - - if (ao->other_replay_gain_filter != NULL) - filter_free(ao->other_replay_gain_filter); - - filter_free(ao->filter); + delete ao->replay_gain_filter; + delete ao->other_replay_gain_filter; + delete ao->filter; pcm_buffer_deinit(&ao->cross_fade_buffer); } |