1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

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
parent 545c2d7206
commit 15a882d2ed

View File

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