mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
check: Fixup the shutting down order
First bring down everything to NULL before attempting to unlink or unref anything. Avoids the tests just hanging there for ever waiting to acquire a lock that doesn't exist anymore.
This commit is contained in:
parent
ab69275f4d
commit
1d0f79478f
1 changed files with 6 additions and 4 deletions
|
@ -218,6 +218,9 @@ GST_START_TEST (test_interleave_2ch)
|
|||
|
||||
fail_unless (have_data == 2);
|
||||
|
||||
gst_element_set_state (interleave, GST_STATE_NULL);
|
||||
gst_element_set_state (queue, GST_STATE_NULL);
|
||||
|
||||
gst_object_unref (mysrcpads[0]);
|
||||
gst_object_unref (mysrcpads[1]);
|
||||
gst_object_unref (mysinkpad);
|
||||
|
@ -227,8 +230,6 @@ GST_START_TEST (test_interleave_2ch)
|
|||
gst_element_release_request_pad (interleave, sink1);
|
||||
gst_object_unref (sink1);
|
||||
|
||||
gst_element_set_state (interleave, GST_STATE_NULL);
|
||||
gst_element_set_state (queue, GST_STATE_NULL);
|
||||
gst_object_unref (interleave);
|
||||
gst_object_unref (queue);
|
||||
gst_object_unref (bus);
|
||||
|
@ -335,6 +336,9 @@ GST_START_TEST (test_interleave_2ch_1eos)
|
|||
|
||||
fail_unless (have_data == 2);
|
||||
|
||||
gst_element_set_state (interleave, GST_STATE_NULL);
|
||||
gst_element_set_state (queue, GST_STATE_NULL);
|
||||
|
||||
gst_object_unref (mysrcpads[0]);
|
||||
gst_object_unref (mysrcpads[1]);
|
||||
gst_object_unref (mysinkpad);
|
||||
|
@ -344,8 +348,6 @@ GST_START_TEST (test_interleave_2ch_1eos)
|
|||
gst_element_release_request_pad (interleave, sink1);
|
||||
gst_object_unref (sink1);
|
||||
|
||||
gst_element_set_state (interleave, GST_STATE_NULL);
|
||||
gst_element_set_state (queue, GST_STATE_NULL);
|
||||
gst_object_unref (interleave);
|
||||
gst_object_unref (queue);
|
||||
gst_object_unref (bus);
|
||||
|
|
Loading…
Reference in a new issue