audio: fix random crashes on uninit

I added this non-sense earlier this day. Oops.
This commit is contained in:
wm4 2014-09-05 04:33:24 +02:00 committed by Alessandro Ghedini
parent 6f7f7c3e2e
commit 1a7b6f1810
1 changed files with 1 additions and 2 deletions

View File

@ -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) {