mirror of https://github.com/mpv-player/mpv
audio: fix random crashes on uninit
I added this non-sense earlier this day. Oops.
This commit is contained in:
parent
6f7f7c3e2e
commit
1a7b6f1810
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue