diff options
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 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) { |