checks: set pipeline back to NULL state in GstBus unit test

Fixes timeout in gst_task_cleanup_all().
This commit is contained in:
Tim-Philipp Müller 2009-08-10 11:42:25 +01:00
parent 7e6966faf6
commit a6c84b2ae6

View file

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