checks: set pipeline back to NULL state in GstBus unit test
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 10 Aug 2009 10:42:25 +0000 (11:42 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 10 Aug 2009 10:55:52 +0000 (11:55 +0100)
Fixes timeout in gst_task_cleanup_all().

tests/check/gst/gstbus.c

index 6a5068a..9151fdd 100644 (file)
@@ -557,6 +557,8 @@ GST_START_TEST (test_custom_main_context)
   GST_INFO ("running event loop, ctx=%p", ctx);
   g_main_loop_run (loop);
 
+  gst_element_set_state (pipeline, GST_STATE_NULL);
+
   /* clean up */
   if (ctx)
     g_main_context_unref (ctx);