diff options
Diffstat (limited to '')
-rw-r--r-- | test/read_mixer.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/read_mixer.cxx b/test/read_mixer.cxx index 095d9945d..4849b7a8c 100644 --- a/test/read_mixer.cxx +++ b/test/read_mixer.cxx @@ -35,8 +35,6 @@ #include <string.h> #include <unistd.h> -EventLoop *main_loop; - #ifdef HAVE_PULSE #include "output/plugins/PulseOutputPlugin.hxx" @@ -115,10 +113,10 @@ int main(int argc, gcc_unused char **argv) g_thread_init(NULL); #endif - main_loop = new EventLoop; + EventLoop event_loop; Error error; - Mixer *mixer = mixer_new(&alsa_mixer_plugin, nullptr, + Mixer *mixer = mixer_new(event_loop, &alsa_mixer_plugin, nullptr, config_param(), error); if (mixer == NULL) { LogError(error, "mixer_new() failed"); @@ -135,8 +133,6 @@ int main(int argc, gcc_unused char **argv) mixer_close(mixer); mixer_free(mixer); - delete main_loop; - assert(volume >= -1 && volume <= 100); if (volume < 0) { |