[vlc-commits] auhal: delete callback on close

Felix Paul Kühne git at videolan.org
Fri Oct 7 17:42:38 CEST 2011


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Oct  7 17:42:33 2011 +0200| [df72d5e5dc445d5c2468f0a6f623ae769b1681aa] | committer: Felix Paul Kühne

auhal: delete callback on close

fixes #5272

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

 modules/audio_output/auhal.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index 7b9ed7e..999771a 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -902,6 +902,8 @@ static void Close( vlc_object_t * p_this )
         if( err != noErr ) msg_Err( p_aout, "Could not release hogmode: [%4.4s]", (char *)&err );
     }
 
+    var_DelCallback( p_aout, "audio-device", AudioDeviceCallback, NULL );
+
     aout_PacketDestroy( p_aout );
     free( p_sys );
 }



More information about the vlc-commits mailing list