tests/core/audio: Process idle queue on EOS
Otherwise idle tasks will register as memory leaks. Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
parent
4250757b83
commit
e4e90f165e
|
@ -230,6 +230,7 @@ void test_autopause()
|
||||||
g_assert_cmpuint(state_count, ==, 5);
|
g_assert_cmpuint(state_count, ==, 5);
|
||||||
|
|
||||||
audio_eos();
|
audio_eos();
|
||||||
|
while (idle_run_task()) {}
|
||||||
g_assert_cmpint(pause_count, ==, -1);
|
g_assert_cmpint(pause_count, ==, -1);
|
||||||
g_assert_cmpuint(audio_cur_state(), ==, GST_STATE_PAUSED);
|
g_assert_cmpuint(audio_cur_state(), ==, GST_STATE_PAUSED);
|
||||||
g_assert_cmpuint(state_count, ==, 6);
|
g_assert_cmpuint(state_count, ==, 6);
|
||||||
|
|
Loading…
Reference in New Issue