Commit 27c392bd authored by Doug Nazar's avatar Doug Nazar Committed by GStreamer Marge Bot

tests/tcp: Fail if unable to start pipelines.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1105>
parent d4bf6b36
......@@ -54,6 +54,7 @@ typedef struct
static void
symmetry_test_setup (SymmetryTest * st, GstElement * sink, GstElement * src)
{
GstStateChangeReturn ret;
GstCaps *caps;
st->sink = sink;
g_object_set (sink, "sync", FALSE, NULL);
......@@ -80,8 +81,13 @@ symmetry_test_setup (SymmetryTest * st, GstElement * sink, GstElement * src)
fail_unless (gst_element_link_many (st->src, GST_ELEMENT (st->src_sink),
NULL));
gst_element_set_state (GST_ELEMENT (st->sink_pipeline), GST_STATE_PLAYING);
gst_element_set_state (GST_ELEMENT (st->src_pipeline), GST_STATE_PLAYING);
ret =
gst_element_set_state (GST_ELEMENT (st->sink_pipeline),
GST_STATE_PLAYING);
fail_if (ret == GST_STATE_CHANGE_FAILURE);
ret =
gst_element_set_state (GST_ELEMENT (st->src_pipeline), GST_STATE_PLAYING);
fail_if (ret == GST_STATE_CHANGE_FAILURE);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment