Commit 929ce490 authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf
Browse files

audiounit_ios: use ca_MuteSet

Fix data race with au_init, leading to crashes, since the audiounit was
stopped from a different thread than the playback one. Indeed, mute
callback can be called from any threads.
parent 33a04f1c
......@@ -408,15 +408,8 @@ Pause (audio_output_t *p_aout, bool pause, vlc_tick_t date)
static int
MuteSet(audio_output_t *p_aout, bool mute)
aout_sys_t * p_sys = p_aout->sys;
p_sys->b_muted = mute;
if (p_sys->au_unit != NULL)
Pause(p_aout, mute, 0);
if (mute)
ca_MuteSet(p_aout, mute);
aout_MuteReport(p_aout, mute);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment