From 14a9ba2fa49df00a9f74d56cd7ea99a9dc1295f7 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Thu, 13 Jul 2017 21:54:55 +0200 Subject: [PATCH] audiomixer: use test helper once more --- tests/check/elements/audiomixer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/check/elements/audiomixer.c b/tests/check/elements/audiomixer.c index e8ad5e3d6f..858c58d84c 100644 --- a/tests/check/elements/audiomixer.c +++ b/tests/check/elements/audiomixer.c @@ -1174,9 +1174,8 @@ GST_START_TEST (test_flush_start_flush_stop) gst_element_link (audiomixer, sink); - gst_element_set_state (pipeline, GST_STATE_PLAYING); - fail_unless (gst_element_get_state (pipeline, NULL, NULL, - GST_CLOCK_TIME_NONE) == GST_STATE_CHANGE_SUCCESS); + /* prepare playing */ + set_state_and_wait (pipeline, GST_STATE_PLAYING); audiomixer_src = gst_element_get_static_pad (audiomixer, "src"); fail_if (GST_PAD_IS_FLUSHING (audiomixer_src));