diff options
author | Robin Gareus <robin@gareus.org> | 2015-06-09 19:18:31 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-06-09 19:18:59 +0200 |
commit | 70a0ee504c67c931e390d35f12d0f0008ebf1fe5 (patch) | |
tree | 47f5c28deb64b85726f38b125ffee7b5c2c2ebd2 | |
parent | 7a966c81bdcc8b6f79d611b73353387b774a8c53 (diff) |
coreaudio: initialize [output] variable.
possible fix for 32bit/10.8,
AudioObjectGetPropertyDataSize error
-rw-r--r-- | libs/backends/coreaudio/coreaudio_pcmio_aggregate.cc | 4 |
1 files 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) { |