tests: fix shm test deadlock

The test was not bringing the source back to NULL, so its thread
could start creating a buffer while the pads were being shutdown.
This commit is contained in:
Vincent Penquerc'h 2014-04-04 15:30:20 +01:00
parent 82b7c915bb
commit 8a8a02e756

View file

@ -72,6 +72,8 @@ setup_shm (void)
static void
teardown_shm (void)
{
fail_unless (gst_element_set_state (src, GST_STATE_NULL) ==
GST_STATE_CHANGE_SUCCESS);
gst_check_teardown_sink_pad (src);
gst_check_teardown_src_pad (sink);
gst_check_teardown_element (src);