From 24840dbdcf15888ae733dc51060286833b440e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 10 Aug 2009 14:14:30 +0100 Subject: [PATCH] checks: fix stream header unit test hanging in gst_task_cleanup_all() Set pipelines to NULL state and unref when done. --- tests/check/pipelines/streamheader.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/check/pipelines/streamheader.c b/tests/check/pipelines/streamheader.c index aa48308088..548fcfc0b0 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;