diff --git a/tests/core/audio.c b/tests/core/audio.c index 2fa526cb..8d032758 100644 --- a/tests/core/audio.c +++ b/tests/core/audio.c @@ -230,6 +230,7 @@ void test_autopause() g_assert_cmpuint(state_count, ==, 5); audio_eos(); + while (idle_run_task()) {} g_assert_cmpint(pause_count, ==, -1); g_assert_cmpuint(audio_cur_state(), ==, GST_STATE_PAUSED); g_assert_cmpuint(state_count, ==, 6);