tests: clean up properly in the bin test_link_structure_change unit test

Don't forget to set the pipeline back to NULL state, which makes
valgrind happy again.
This commit is contained in:
Tim-Philipp Müller 2011-04-24 11:44:19 +01:00
parent f9625dbe55
commit 0783046100

View file

@ -1006,10 +1006,12 @@ GST_START_TEST (test_link_structure_change)
gst_element_get_state (pipeline, NULL, NULL, GST_CLOCK_TIME_NONE);
/* the state change will be done on src only if the pipeline correctly resyncs
* after that filesrc has been linked to identity */
* after that fakesrc has been linked to identity */
gst_element_get_state (src, &state, NULL, 0);
fail_unless_equals_int (state, GST_STATE_READY);
/* clean up */
gst_element_set_state (pipeline, GST_STATE_NULL);
gst_object_unref (bus);
gst_object_unref (pipeline);
}