summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--tests/icles/ximagesrc-test.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index dff46a4a..881d532e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2006-04-07 Zaheer Abbas Merali <zaheerabbas at merali dot org>
+ * tests/icles/ximagesrc-test.c: (main):
+ Actually assert that pipeline goes to playing
+
+2006-04-07 Zaheer Abbas Merali <zaheerabbas at merali dot org>
+
* sys/ximagesrc/ximagesrc.c: (gst_ximagesrc_recalc),
(composite_pixel), (gst_ximagesrc_ximage_get),
(gst_ximagesrc_create), (gst_ximagesrc_set_property):
diff --git a/tests/icles/ximagesrc-test.c b/tests/icles/ximagesrc-test.c
index 471c36a3..7af0e68b 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);