summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Pang <athp@users.sourceforge.net>2004-06-21 16:13:10 +0000
committerAndre Pang <athp@users.sourceforge.net>2004-06-21 16:13:10 +0000
commit6e320abf8b72c156a906dbc91e49027193874d9a (patch)
tree0b4a8974d90d5ce7e2150e54c70b3071e7280eca
parent95af5a2ae99058e2c30c3a127e3e44c3f69b3e04 (diff)
downloadxine-lib-6e320abf8b72c156a906dbc91e49027193874d9a.tar.gz
xine-lib-6e320abf8b72c156a906dbc91e49027193874d9a.tar.bz2
CoreAudio output: Should call CloseComponent() on the component instances, not
the component itself CVS patchset: 6725 CVS date: 2004/06/21 16:13:10
-rw-r--r--src/audio_out/audio_coreaudio_out.c8
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;
}
}