From 83e863d15c6370aa2fb1c30500b482bb5e8a7fd5 Mon Sep 17 00:00:00 2001 From: Zaheer Abbas Merali Date: Fri, 7 Apr 2006 15:47:27 +0000 Subject: [PATCH] tests/icles/ximagesrc-test.c: Actually assert that pipeline goes to playing Original commit message from CVS: 2006-04-07 Zaheer Abbas Merali * tests/icles/ximagesrc-test.c: (main): Actually assert that pipeline goes to playing --- ChangeLog | 5 +++++ tests/icles/ximagesrc-test.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index dff46a4a22..881d532e07 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-04-07 Zaheer Abbas Merali + + * tests/icles/ximagesrc-test.c: (main): + Actually assert that pipeline goes to playing + 2006-04-07 Zaheer Abbas Merali * sys/ximagesrc/ximagesrc.c: (gst_ximagesrc_recalc), diff --git a/tests/icles/ximagesrc-test.c b/tests/icles/ximagesrc-test.c index 471c36a333..7af0e68bfb 100644 --- a/tests/icles/ximagesrc-test.c +++ b/tests/icles/ximagesrc-test.c @@ -38,6 +38,7 @@ main (int argc, char **argv) { GstElement *pipeline; GstBus *bus; + GstState state, pending; GError *error = NULL; gst_init (&argc, &argv); @@ -54,6 +55,11 @@ main (int argc, char **argv) gst_element_set_state (pipeline, GST_STATE_PLAYING); + /* lets check it gets to PLAYING */ + g_assert (gst_element_get_state (pipeline, &state, &pending, + GST_CLOCK_TIME_NONE) != GST_STATE_CHANGE_FAILURE); + g_assert (state == GST_STATE_PLAYING || pending == GST_STATE_PLAYING); + /* We want to get out after 5 seconds */ g_timeout_add (5000, (GSourceFunc) terminate_playback, pipeline);