mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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:
parent
d4bf6b36d2
commit
27c392bda3
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue