1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-28 23:09:59 +02:00

auhal: properly retain device array contents

This commit is contained in:
David Fuhrmann 2014-04-27 15:39:34 +02:00
parent 7724e3e118
commit e9099ee4ef

View File

@ -1188,7 +1188,7 @@ static void RebuildDeviceList(audio_output_t * p_aout)
ReportDevice(p_aout, 0, _("System Sound Output Device"));
/* setup local array */
currentListOfDevices = CFArrayCreateMutable(kCFAllocatorDefault, 0, NULL);
currentListOfDevices = CFArrayCreateMutable(kCFAllocatorDefault, 0, &kCFTypeArrayCallBacks);
/* Get number of devices */
AudioObjectPropertyAddress audioDevicesAddress = { kAudioHardwarePropertyDevices, kAudioObjectPropertyScopeGlobal, kAudioObjectPropertyElementMaster };