From 15a882d2ed7e9eee5c2b1166189698291e76b19b Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 5 Sep 2014 04:33:24 +0200 Subject: audio: fix random crashes on uninit I added this non-sense earlier this day. Oops. --- player/loadfile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'player/loadfile.c') diff --git a/player/loadfile.c b/player/loadfile.c index c136cc3a19..33c71462cc 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -85,10 +85,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) { -- cgit v1.2.3