[vlc-commits] aout: fix potential crash if changing device on aout being deleted

Rémi Denis-Courmont git at videolan.org
Mon Mar 10 18:19:12 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar 10 18:35:44 2014 +0200| [147ccd1bab56d373e5563763547be9780cb23245] | committer: Rémi Denis-Courmont

aout: fix potential crash if changing device on aout being deleted

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

 src/audio_output/output.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/audio_output/output.c b/src/audio_output/output.c
index 18fee05..86a9506 100644
--- a/src/audio_output/output.c
+++ b/src/audio_output/output.c
@@ -324,6 +324,7 @@ void aout_Destroy (audio_output_t *aout)
     /* Protect against late call from intf.c */
     aout->volume_set = NULL;
     aout->mute_set = NULL;
+    aout->device_select = NULL;
     aout_OutputUnlock (aout);
 
     var_DelCallback (aout, "mute", var_Copy, aout->p_parent);



More information about the vlc-commits mailing list