diff --git a/modules/audio_output/audiounit_ios.m b/modules/audio_output/audiounit_ios.m index c9a8b7c7df46d4923cbc2ef06429e2fe8f8cebc6..aca7c44de8f3cdcea4921123f56a35f66c94ffa1 100644 --- a/modules/audio_output/audiounit_ios.m +++ b/modules/audio_output/audiounit_ios.m @@ -133,7 +133,7 @@ typedef struct /* The AudioUnit we use */ AudioUnit au_unit; bool b_muted; - bool b_paused; + bool b_stopped; bool b_preferred_channels_set; enum au_dev au_dev; @@ -374,7 +374,7 @@ Pause (audio_output_t *p_aout, bool pause, vlc_tick_t date) * multi-tasking, the multi-tasking view would still show a playing state * despite we are paused, same for lock screen */ - if (pause == p_sys->b_paused) + if (pause == p_sys->b_stopped) return; OSStatus err; @@ -400,7 +400,7 @@ Pause (audio_output_t *p_aout, bool pause, vlc_tick_t date) } } } - p_sys->b_paused = pause; + p_sys->b_stopped = pause; ca_Pause(p_aout, pause, date); } @@ -449,7 +449,7 @@ Stop(audio_output_t *p_aout) [[NSNotificationCenter defaultCenter] removeObserver:p_sys->aoutWrapper]; - if (!p_sys->b_paused) + if (!p_sys->b_stopped) { err = AudioOutputUnitStop(p_sys->au_unit); if (err != noErr)