From: <tp...@ke...> - 2006-09-27 11:31:57
|
CVS Root: /cvs/gstreamer Module: gst-plugins-base Changes by: tpm Date: Wed Sep 27 2006 11:31:55 UTC Log message: * tests/check/pipelines/simple-launch-lines.c: (run_pipeline): Add timeout to _get_state() so we see which pipeline it is that causes trouble on the gen64 build bot. Modified files: . : ChangeLog tests/check/pipelines: simple-launch-lines.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/ChangeLog.diff?r1=1.2922&r2=1.2923 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/tests/check/pipelines/simple-launch-lines.c.diff?r1=1.10&r2=1.11 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins-base/ChangeLog,v retrieving revision 1.2922 retrieving revision 1.2923 diff -u -d -r1.2922 -r1.2923 --- ChangeLog 27 Sep 2006 11:06:54 -0000 1.2922 +++ ChangeLog 27 Sep 2006 11:31:43 -0000 1.2923 @@ -1,3 +1,9 @@ +2006-09-27 Tim-Philipp Müller <tim at centricular dot net> + + * tests/check/pipelines/simple-launch-lines.c: (run_pipeline): + Add timeout to _get_state() so we see which pipeline it is + that causes trouble on the gen64 build bot. 2006-09-27 Wim Taymans <wi...@fl...> * gst-libs/gst/rtp/gstbasertpdepayload.c: Index: simple-launch-lines.c RCS file: /cvs/gstreamer/gst-plugins-base/tests/check/pipelines/simple-launch-lines.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- simple-launch-lines.c 28 Jul 2006 17:17:24 -0000 1.10 +++ simple-launch-lines.c 27 Sep 2006 11:31:43 -0000 1.11 @@ -58,9 +58,12 @@ fail_if (gst_element_set_state (pipe, GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE, "Could not set pipeline %s to playing", descr); - ret = gst_element_get_state (pipe, NULL, NULL, GST_CLOCK_TIME_NONE); - if (ret != GST_STATE_CHANGE_SUCCESS) { - g_critical ("Couldn't set pipeline to PLAYING"); + ret = gst_element_get_state (pipe, NULL, NULL, 10 * GST_SECOND); + if (ret == GST_STATE_CHANGE_ASYNC) { + g_critical ("Pipeline '%s' failed to go to PLAYING fast enough", descr); + goto done; + } else if (ret != GST_STATE_CHANGE_SUCCESS) { + g_critical ("Pipeline '%s' failed to go into PLAYING state", descr); goto done; } |