summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2016-09-19 19:26:20 -0700
committerwm4 <wm4@nowhere>2016-09-20 14:46:36 +0200
commit5fca497698790924bf94993321f6f6da1990b372 (patch)
treeff7a3e0812c5c5150efe9e7700ccc1c793ab0ce3 /player
parent995962291a386229087656ec8ceaf01d66004955 (diff)
downloadmpv-5fca497698790924bf94993321f6f6da1990b372.tar.bz2
mpv-5fca497698790924bf94993321f6f6da1990b372.tar.xz
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.
Diffstat (limited to 'player')
-rw-r--r--player/audio.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}