[vlc-commits] auhal: properly retain device array contents

David Fuhrmann git at videolan.org
Sun Apr 27 15:41:23 CEST 2014


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Apr 27 15:39:34 2014 +0200| [e9099ee4effc3dfdde5f9c03755633c3e93ea9ca] | committer: David Fuhrmann

auhal: properly retain device array contents

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e9099ee4effc3dfdde5f9c03755633c3e93ea9ca
---

 modules/audio_output/auhal.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index bea5e05..a81c2b3 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -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 };



More information about the vlc-commits mailing list