From 5fca497698790924bf94993321f6f6da1990b372 Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Mon, 19 Sep 2016 19:26:20 -0700 Subject: audio: fix segfault when yanking USB DAC The ao_c pointer was stale after the mpctx entry was freed / NULLed. This prevented the correct early exit from fill_audio_out_buffers. --- player/audio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/player/audio.c b/player/audio.c index 7990a4b77b..ca80518f23 100644 --- a/player/audio.c +++ b/player/audio.c @@ -884,6 +884,7 @@ void fill_audio_out_buffers(struct MPContext *mpctx) } } reinit_audio_filters_and_output(mpctx); + ao_c = mpctx->ao_chain; } } -- cgit v1.2.3