[vlc-commits] aout: reset volume to 1 on module unload

Rémi Denis-Courmont git at videolan.org
Tue May 22 19:27:22 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue May 22 20:25:54 2012 +0300| [0c2776290e608f78ea16eb309d0af31728e1e0dd] | committer: Rémi Denis-Courmont

aout: reset volume to 1 on module unload

This fixes a corner case where the old volume of an output plugin using
software amplification would be wrongly applied to the next output
plugin instance (if that used "hardware" amplification).

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

 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 712a0aa..df3f858 100644
--- a/src/audio_output/output.c
+++ b/src/audio_output/output.c
@@ -213,6 +213,7 @@ void aout_OutputDelete (audio_output_t *aout)
     aout->pf_flush = NULL;
     aout->pf_volume_set = NULL;
     owner->module = NULL;
+    owner->volume.multiplier = 1.0;
     aout_FiltersDestroyPipeline (owner->filters, owner->nb_filters);
 }
 



More information about the vlc-commits mailing list