Commit c5cb9d89 authored by sletz's avatar sletz
Browse files

Init property size in JackCoreAudioAdapter and JackCoreAudioDriver.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3027 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 626570de
......@@ -801,7 +801,7 @@ int JackCoreAudioAdapter::OpenAUHAL(bool capturing,
}
AudioDeviceID currAudioDeviceID;
UInt32 size;
UInt32 size = sizeof(AudioDeviceID);
err1 = AudioUnitGetProperty(fAUHAL, kAudioOutputUnitProperty_CurrentDevice, kAudioUnitScope_Global, 0, &currAudioDeviceID, &size);
if (err1 != noErr) {
jack_error("Error calling AudioUnitGetProperty - kAudioOutputUnitProperty_CurrentDevice");
......
......@@ -683,7 +683,7 @@ int JackCoreAudioDriver::OpenAUHAL(bool capturing,
}
AudioDeviceID currAudioDeviceID;
UInt32 size;
UInt32 size = sizeof(AudioDeviceID);
err1 = AudioUnitGetProperty(fAUHAL, kAudioOutputUnitProperty_CurrentDevice, kAudioUnitScope_Global, 0, &currAudioDeviceID, &size);
if (err1 != noErr) {
jack_error("Error calling AudioUnitGetProperty - kAudioOutputUnitProperty_CurrentDevice");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment