From 70a0ee504c67c931e390d35f12d0f0008ebf1fe5 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 9 Jun 2015 19:18:31 +0200 Subject: [PATCH] coreaudio: initialize [output] variable. possible fix for 32bit/10.8, AudioObjectGetPropertyDataSize error --- libs/backends/coreaudio/coreaudio_pcmio_aggregate.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/backends/coreaudio/coreaudio_pcmio_aggregate.cc b/libs/backends/coreaudio/coreaudio_pcmio_aggregate.cc index 84e373206e..0ab683a686 100644 --- a/libs/backends/coreaudio/coreaudio_pcmio_aggregate.cc +++ b/libs/backends/coreaudio/coreaudio_pcmio_aggregate.cc @@ -32,7 +32,7 @@ CoreAudioPCM::destroy_aggregate_device () property_address.mSelector = kAudioPlugInDestroyAggregateDevice; property_address.mScope = kAudioObjectPropertyScopeGlobal; property_address.mElement = kAudioObjectPropertyElementMaster; - UInt32 outDataSize; + UInt32 outDataSize = 0; err = AudioObjectGetPropertyDataSize(_aggregate_plugin_id, &property_address, 0, NULL, &outDataSize); if (err != noErr) { @@ -223,7 +223,7 @@ CoreAudioPCM::create_aggregate_device ( pluginAOPA.mSelector = kAudioPlugInCreateAggregateDevice; pluginAOPA.mScope = kAudioObjectPropertyScopeGlobal; pluginAOPA.mElement = kAudioObjectPropertyElementMaster; - UInt32 outDataSize; + UInt32 outDataSize = 0; err = AudioObjectGetPropertyDataSize(_aggregate_plugin_id, &pluginAOPA, 0, NULL, &outDataSize); if (err != noErr) { -- 2.30.2