tests/tcp: Fail if unable to start pipelines.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1105>
This commit is contained in:
Doug Nazar 2021-04-19 11:53:10 -04:00 committed by GStreamer Marge Bot
parent d4bf6b36d2
commit 27c392bda3

View file

@ -54,6 +54,7 @@ typedef struct
static void static void
symmetry_test_setup (SymmetryTest * st, GstElement * sink, GstElement * src) symmetry_test_setup (SymmetryTest * st, GstElement * sink, GstElement * src)
{ {
GstStateChangeReturn ret;
GstCaps *caps; GstCaps *caps;
st->sink = sink; st->sink = sink;
g_object_set (sink, "sync", FALSE, NULL); 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), fail_unless (gst_element_link_many (st->src, GST_ELEMENT (st->src_sink),
NULL)); NULL));
gst_element_set_state (GST_ELEMENT (st->sink_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); gst_element_set_state (GST_ELEMENT (st->src_pipeline), GST_STATE_PLAYING);
fail_if (ret == GST_STATE_CHANGE_FAILURE);
} }
static void static void