]> git.sesse.net Git - vlc/blobdiff - modules/audio_output/waveout.c
mozilla: fix out-of-tree compilation on macosx
[vlc] / modules / audio_output / waveout.c
index b21a2fc2aeeb396072503db0ef6e4d8ffdbba71e..b7efbe2c413d00f51511acfa9f71d49f03ab2e4b 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <string.h>                                            /* strerror() */
-#include <stdlib.h>                            /* calloc(), malloc(), free() */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <vlc/vlc.h>
 #include <vlc_aout.h>
@@ -486,7 +488,7 @@ static void Close( vlc_object_t *p_this )
     aout_sys_t *p_sys = p_aout->output.p_sys;
 
     /* Before calling waveOutClose we must reset the device */
-    p_aout->b_die = VLC_TRUE;
+    vlc_object_kill( p_aout );
 
     waveOutReset( p_sys->h_waveout );