summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2011-12-26 02:23:51 +0100
committerwm4 <wm4@mplayer2.org>2012-01-18 04:21:45 +0100
commitd1b38a8a371d13ce59b2d1b4152f0252ac8d8b4c (patch)
tree34aa4affb7802bf05be658e914ab916dfb500136
parent7eac60417f3a6714675e862a8a1612d1edf183fc (diff)
downloadmpv-d1b38a8a371d13ce59b2d1b4152f0252ac8d8b4c.tar.bz2
mpv-d1b38a8a371d13ce59b2d1b4152f0252ac8d8b4c.tar.xz
audio: fix crash when exiting file when mute is enabled
-rw-r--r--mplayer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 6b57c695e6..8f635576c3 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -719,6 +719,7 @@ void uninit_player(struct MPContext *mpctx, unsigned int mask)
if (mpctx->ao)
ao_uninit(mpctx->ao, mpctx->stop_play != AT_END_OF_FILE);
mpctx->ao = NULL;
+ mpctx->mixer.ao = NULL;
}
current_module = NULL;