mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
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:
parent
82b7c915bb
commit
8a8a02e756
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue