summaryrefslogtreecommitdiff
path: root/tests/check/pipelines/streamheader.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-08-10 14:14:30 +0100
committerTim-Philipp Müller <tim@centricular.net>2012-09-11 01:54:33 +0100
commit24840dbdcf15888ae733dc51060286833b440e4f (patch)
tree88dc9f08a291c86747bc496f26ad3dfbd916e064 /tests/check/pipelines/streamheader.c
parente56bf3929e3afc33f6834714fb6ff2f086bb842c (diff)
downloadgstreamer-plugins-bad-24840dbdcf15888ae733dc51060286833b440e4f.tar.gz
checks: fix stream header unit test hanging in gst_task_cleanup_all()
Set pipelines to NULL state and unref when done.
Diffstat (limited to 'tests/check/pipelines/streamheader.c')
-rw-r--r--tests/check/pipelines/streamheader.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/check/pipelines/streamheader.c b/tests/check/pipelines/streamheader.c
index aa4830808..548fcfc0b 100644
--- a/tests/check/pipelines/streamheader.c
+++ b/tests/check/pipelines/streamheader.c
@@ -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;