[vlc-commits] auhal: fix memory corruption crash when device list changes (refs #8286)

David Fuhrmann git at videolan.org
Sat Mar 23 17:27:31 CET 2013


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sun Mar 10 18:39:00 2013 +0100| [f27f834d6a60944ca9f5dee87dc802b1a220178c] | committer: David Fuhrmann

auhal: fix memory corruption crash when device list changes (refs #8286)

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

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

diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index 03a60fe..4d3a834 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -1005,6 +1005,7 @@ static void RebuildDeviceList(audio_output_t * p_aout)
             free(device);
         }
     }
+    p_sys->devices = NULL;
 
     /* Get number of devices */
     AudioObjectPropertyAddress audioDevicesAddress = { kAudioHardwarePropertyDevices, kAudioObjectPropertyScopeGlobal, kAudioObjectPropertyElementMaster };



More information about the vlc-commits mailing list