Commit c814ad09 authored by Thomas Guillem's avatar Thomas Guillem

audiounit_ios: remove ca_Flush hack

Since ca_Flush() can now works when paused.

NB: Normally, ca_Flush() can't be called when paused by VLC but this module do
a pause in order to mute, and the paused state can now be set from the
interrupt notification.

(cherry picked from commit c7e8e84b)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <>
parent 4793c4ff
......@@ -350,15 +350,7 @@ Flush(audio_output_t *p_aout, bool wait)
struct aout_sys_t * p_sys = p_aout->sys;
if (!p_sys->b_paused)
ca_Flush(p_aout, wait);
/* ca_Flush() can't work while paused since the AudioUnit is Stopped
* and the render callback won't be called. But it's safe to clear the
* circular buffer from this thread since AU is stopped. */
ca_Flush(p_aout, wait);
static int
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