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.
This commit is contained in:
Kevin Mitchell 2016-09-19 19:26:20 -07:00 committed by wm4
parent 995962291a
commit 5fca497698
1 changed files with 1 additions and 0 deletions

View File

@ -884,6 +884,7 @@ void fill_audio_out_buffers(struct MPContext *mpctx)
}
}
reinit_audio_filters_and_output(mpctx);
ao_c = mpctx->ao_chain;
}
}