mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
tests: set elements in PAUSED
Set elements in PAUSED before trying to set caps on pads.
This commit is contained in:
parent
d4f85a0cd9
commit
ca0069595f
1 changed files with 8 additions and 0 deletions
|
@ -974,6 +974,10 @@ GST_START_TEST (test_pad_proxy_getcaps_aggregation)
|
|||
|
||||
tee_sink = gst_element_get_static_pad (tee, "sink");
|
||||
|
||||
gst_element_set_state (sink1, GST_STATE_PAUSED);
|
||||
gst_element_set_state (sink2, GST_STATE_PAUSED);
|
||||
gst_element_set_state (tee, GST_STATE_PAUSED);
|
||||
|
||||
/* by default, ANY caps should intersect to ANY */
|
||||
caps = gst_pad_get_caps (tee_sink, NULL);
|
||||
GST_INFO ("got caps: %" GST_PTR_FORMAT, caps);
|
||||
|
@ -1016,6 +1020,10 @@ GST_START_TEST (test_pad_proxy_getcaps_aggregation)
|
|||
}
|
||||
gst_caps_unref (caps);
|
||||
|
||||
gst_element_set_state (sink1, GST_STATE_NULL);
|
||||
gst_element_set_state (sink2, GST_STATE_NULL);
|
||||
gst_element_set_state (tee, GST_STATE_NULL);
|
||||
|
||||
/* clean up */
|
||||
gst_element_release_request_pad (tee, tee_src1);
|
||||
gst_object_unref (tee_src1);
|
||||
|
|
Loading…
Reference in a new issue