diff options
author | wm4 <wm4@nowhere> | 2014-09-05 04:33:24 +0200 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-09-23 21:09:05 +0200 |
commit | 1a7b6f18100a3aa1958af9f9385806503c46fdf3 (patch) | |
tree | e2adaca0a93f090d0c462ceb4175071f716a2e16 /player | |
parent | 6f7f7c3e2eb0788238d2c397e9c63a63c271540c (diff) | |
download | mpv-1a7b6f18100a3aa1958af9f9385806503c46fdf3.tar.bz2 mpv-1a7b6f18100a3aa1958af9f9385806503c46fdf3.tar.xz |
audio: fix random crashes on uninit
I added this non-sense earlier this day. Oops.
Diffstat (limited to 'player')
-rw-r--r-- | player/loadfile.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/player/loadfile.c b/player/loadfile.c index 6431feedb4..2954af2243 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -87,10 +87,9 @@ void uninit_player(struct MPContext *mpctx, unsigned int mask) audio_uninit(mpctx->d_audio); mpctx->d_audio = NULL; talloc_free(mpctx->ao_buffer); + mpctx->ao_buffer = NULL; mpctx->audio_status = STATUS_EOF; reselect_demux_streams(mpctx); - if (mpctx->ao_buffer) - mp_audio_buffer_clear(mpctx->ao_buffer); } if (mask & INITIALIZED_SUB) { |