]> git.sesse.net Git - vlc/blobdiff - src/audio_output/mixer.c
Use var_Inherit* instead of var_CreateGet*.
[vlc] / src / audio_output / mixer.c
index b4b2c26dd0e9bed7d31aff916864a05b388a8812..8b1fd3acdb82109b28c15f556525ac7d73d960f3 100644 (file)
@@ -32,6 +32,7 @@
 #include <stddef.h>
 #include <vlc_common.h>
 #include <libvlc.h>
+#include <vlc_modules.h>
 
 #include <vlc_aout.h>
 #include "aout_internal.h"
@@ -65,7 +66,6 @@ int aout_MixerNew( aout_instance_t * p_aout )
     if( !p_mixer->module )
     {
         msg_Err( p_aout, "no suitable audio mixer" );
-        vlc_object_detach( p_mixer );
         free( p_mixer->input );
         vlc_object_release( p_mixer );
         return VLC_EGENERIC;
@@ -86,8 +86,6 @@ void aout_MixerDelete( aout_instance_t * p_aout )
     if( !p_aout->p_mixer )
         return;
 
-    vlc_object_detach( p_aout->p_mixer );
-
     module_unneed( p_aout->p_mixer, p_aout->p_mixer->module );
 
     free( p_aout->p_mixer->input );