tests: set elements in PAUSED

Set elements in PAUSED before trying to set caps on pads.
This commit is contained in:
Wim Taymans 2011-05-16 19:09:54 +02:00
parent d4f85a0cd9
commit ca0069595f

View file

@ -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);