mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
checks: fix stream header unit test hanging in gst_task_cleanup_all()
Set pipelines to NULL state and unref when done.
This commit is contained in:
parent
e56bf3929e
commit
24840dbdcf
1 changed files with 10 additions and 0 deletions
|
@ -103,6 +103,11 @@ GST_START_TEST (test_multifdsink_gdp_tag)
|
|||
g_main_loop_run (loop);
|
||||
|
||||
assert_equals_int (n_tags, 1);
|
||||
|
||||
gst_element_set_state (p1, GST_STATE_NULL);
|
||||
gst_object_unref (p1);
|
||||
gst_element_set_state (p2, GST_STATE_NULL);
|
||||
gst_object_unref (p2);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
@ -202,6 +207,11 @@ GST_START_TEST (test_multifdsink_gdp_vorbisenc)
|
|||
g_main_loop_run (loop);
|
||||
|
||||
assert_equals_int (n_in_caps, 3);
|
||||
|
||||
gst_element_set_state (p1, GST_STATE_NULL);
|
||||
gst_object_unref (p1);
|
||||
gst_element_set_state (p2, GST_STATE_NULL);
|
||||
gst_object_unref (p2);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
|
Loading…
Reference in a new issue