diff options
-rw-r--r-- | src/audio_out/audio_coreaudio_out.c | 8 |
1 files 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; } } |