mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
tests/check/pipelines/simple-launch-lines.c: Attempt to 'fix' spuriously failing test case: it seems like the timeout...
Original commit message from CVS: * tests/check/pipelines/simple-launch-lines.c: (test_stop_from_app): Attempt to 'fix' spuriously failing test case: it seems like the timeout of half a second is simply too small when the system is under load otherwise, and the timeout doesn't really seem to serve any particular purpose here. Give the pipeline a few seconds to preroll first, and then give it another half a second to go from PAUSED to PLAYING and marshal the message into the main thread.
This commit is contained in:
parent
6338559f6d
commit
e779589a0b
2 changed files with 25 additions and 1 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2006-06-21 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* tests/check/pipelines/simple-launch-lines.c: (test_stop_from_app):
|
||||
Attempt to 'fix' spuriously failing test case: it seems like the
|
||||
timeout of half a second is simply too small when the system is under
|
||||
load otherwise, and the timeout doesn't really seem to serve any
|
||||
particular purpose here. Give the pipeline a few seconds to preroll
|
||||
first, and then give it another half a second to go from PAUSED to
|
||||
PLAYING and marshal the message into the main thread.
|
||||
|
||||
2006-06-21 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* tools/gst-feedback-m.m:
|
||||
|
|
|
@ -149,6 +149,7 @@ GST_START_TEST (test_stop_from_app)
|
|||
{
|
||||
GstElement *fakesrc, *fakesink, *pipeline;
|
||||
GstBus *bus;
|
||||
GstStateChangeReturn ret;
|
||||
GstMessageType rmessage;
|
||||
GstMessage *message;
|
||||
|
||||
|
@ -161,11 +162,24 @@ GST_START_TEST (test_stop_from_app)
|
|||
fail_unless (fakesrc && fakesink && pipeline);
|
||||
|
||||
gst_bin_add_many (GST_BIN (pipeline), fakesrc, fakesink, NULL);
|
||||
gst_element_link (fakesrc, fakesink);
|
||||
fail_unless (gst_element_link (fakesrc, fakesink) != FALSE);
|
||||
|
||||
g_object_set (fakesink, "signal-handoffs", (gboolean) TRUE, NULL);
|
||||
g_signal_connect (fakesink, "handoff", G_CALLBACK (got_handoff), NULL);
|
||||
|
||||
gst_element_set_state (pipeline, GST_STATE_PAUSED);
|
||||
ret = gst_element_get_state (pipeline, NULL, NULL, 5 * GST_SECOND);
|
||||
switch (ret) {
|
||||
case GST_STATE_CHANGE_FAILURE:
|
||||
g_error ("Failed to change state to PAUSED");
|
||||
break;
|
||||
case GST_STATE_CHANGE_ASYNC:
|
||||
g_error ("Failed to change state to PAUSED within 5 seconds");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||
|
||||
bus = gst_element_get_bus (pipeline);
|
||||
|
|
Loading…
Reference in a new issue