Commit e9099ee4 authored by David Fuhrmann's avatar David Fuhrmann

auhal: properly retain device array contents

parent 7724e3e1
...@@ -1188,7 +1188,7 @@ static void RebuildDeviceList(audio_output_t * p_aout) ...@@ -1188,7 +1188,7 @@ static void RebuildDeviceList(audio_output_t * p_aout)
ReportDevice(p_aout, 0, _("System Sound Output Device")); ReportDevice(p_aout, 0, _("System Sound Output Device"));
/* setup local array */ /* setup local array */
currentListOfDevices = CFArrayCreateMutable(kCFAllocatorDefault, 0, NULL); currentListOfDevices = CFArrayCreateMutable(kCFAllocatorDefault, 0, &kCFTypeArrayCallBacks);
/* Get number of devices */ /* Get number of devices */
AudioObjectPropertyAddress audioDevicesAddress = { kAudioHardwarePropertyDevices, kAudioObjectPropertyScopeGlobal, kAudioObjectPropertyElementMaster }; AudioObjectPropertyAddress audioDevicesAddress = { kAudioHardwarePropertyDevices, kAudioObjectPropertyScopeGlobal, kAudioObjectPropertyElementMaster };
......
Markdown is supported
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