From 6e320abf8b72c156a906dbc91e49027193874d9a Mon Sep 17 00:00:00 2001 From: Andre Pang Date: Mon, 21 Jun 2004 16:13:10 +0000 Subject: CoreAudio output: Should call CloseComponent() on the component instances, not the component itself CVS patchset: 6725 CVS date: 2004/06/21 16:13:10 --- src/audio_out/audio_coreaudio_out.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/audio_out/audio_coreaudio_out.c b/src/audio_out/audio_coreaudio_out.c index 6ad1a563f..5220e3d17 100644 --- a/src/audio_out/audio_coreaudio_out.c +++ b/src/audio_out/audio_coreaudio_out.c @@ -314,23 +314,23 @@ static void ao_coreaudio_close(ao_driver_t *this_gen) if (this->au_unit) { AudioOutputUnitStop (this->au_unit); AudioUnitUninitialize (this->au_unit); + /* contrary to some of Apple's documentation, the function to close a + * component is called CloseComponent, not CloseAComponent */ + CloseComponent (this->au_unit); this->au_unit = 0; } if (this->converter_unit) { AudioUnitUninitialize (this->converter_unit); + CloseComponent (this->converter_unit); this->converter_unit = 0; } if (this->au_component) { - /* contrary to some of Apple's documentation, the function to close a - * component is called CloseComponent, not CloseAComponent */ - CloseComponent (this->au_component); this->au_component = NULL; } if (this->converter_component) { - CloseComponent (this->converter_component); this->converter_component = NULL; } } -- cgit v1.2.3