[vlc-commits] aout: do not remove audio-device on new stream (refs #7601)

Rémi Denis-Courmont git at videolan.org
Thu Nov 1 21:11:31 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Nov  1 22:10:54 2012 +0200| [d16ea40ac2a99a582999dd09668222fb714f5347] | committer: Rémi Denis-Courmont

aout: do not remove audio-device on new stream (refs #7601)

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

 src/audio_output/dec.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index 52e4fcf..8a886e8 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -72,10 +72,9 @@ int aout_DecNew( audio_output_t *p_aout,
     /* TODO: reduce lock scope depending on decoder's real need */
     aout_lock( p_aout );
 
-    /* Create the audio output stream */
-    var_Destroy( p_aout, "audio-device" );
     var_Destroy( p_aout, "stereo-mode" );
 
+    /* Create the audio output stream */
     owner->input_format = *p_format;
     vlc_atomic_set (&owner->restart, 0);
     owner->volume = aout_volume_New (p_aout, p_replay_gain);
@@ -119,7 +118,6 @@ void aout_DecDelete (audio_output_t *p_aout)
     aout_OutputDelete( p_aout );
     aout_volume_Delete (owner->volume);
 
-    var_Destroy( p_aout, "audio-device" );
     var_Destroy( p_aout, "stereo-mode" );
 
     aout_unlock( p_aout );



More information about the vlc-commits mailing list