Browse Source

tests/core/audio: Process idle queue on EOS

Otherwise idle tasks will register as memory leaks.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
keep-around/f28c5a799b6d4d400cb6acc463f7c686f00c6979
Anna 5 years ago
parent
commit
e4e90f165e
  1. 1
      tests/core/audio.c

1
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);

Loading…
Cancel
Save