output_control: move code to audio_output_destruct()

.. and destruct the output object properly in test/run_output.
This commit is contained in:
Max Kellermann
2011-08-30 22:28:15 +02:00
parent ae8bda190e
commit 293836494d
5 changed files with 60 additions and 20 deletions

View File

@@ -233,8 +233,7 @@ int main(int argc, char **argv)
/* cleanup and exit */
ao_plugin_finish(ao.plugin, ao.data);
g_mutex_free(ao.mutex);
audio_output_destruct(&ao);
io_thread_deinit();