mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
tests/icles/ximagesrc-test.c: Actually assert that pipeline goes to playing
Original commit message from CVS: 2006-04-07 Zaheer Abbas Merali <zaheerabbas at merali dot org> * tests/icles/ximagesrc-test.c: (main): Actually assert that pipeline goes to playing
This commit is contained in:
parent
26b748c0fb
commit
83e863d15c
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
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),
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue