mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
tests: make pipeline test valgrind clean
This commit is contained in:
parent
31e28180b3
commit
79c0d2a276
1 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,7 @@ GST_START_TEST (test_async_state_change_empty)
|
|||
fail_unless_equals_int (gst_element_set_state (GST_ELEMENT (pipeline),
|
||||
GST_STATE_PLAYING), GST_STATE_CHANGE_SUCCESS);
|
||||
|
||||
gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_NULL);
|
||||
gst_object_unref (pipeline);
|
||||
}
|
||||
|
||||
|
@ -60,6 +61,7 @@ GST_START_TEST (test_async_state_change_fake_ready)
|
|||
fail_unless_equals_int (gst_element_set_state (GST_ELEMENT (pipeline),
|
||||
GST_STATE_READY), GST_STATE_CHANGE_SUCCESS);
|
||||
|
||||
gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_NULL);
|
||||
gst_object_unref (pipeline);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue