mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
tests: fix GstPad test on windows and in CK_FORK=no mode
Need to clear buffer lists at the end of each test. https://bugzilla.gnome.org/show_bug.cgi?id=697610
This commit is contained in:
parent
96a8d5945f
commit
54aaba5f21
1 changed files with 6 additions and 0 deletions
|
@ -286,6 +286,8 @@ GST_START_TEST (test_sticky_caps_unlinked)
|
|||
fail_unless (event_caps == caps);
|
||||
fail_unless_equals_int (g_list_length (buffers), 1);
|
||||
|
||||
gst_check_drop_buffers ();
|
||||
|
||||
gst_caps_replace (&caps, NULL);
|
||||
gst_caps_replace (&event_caps, NULL);
|
||||
|
||||
|
@ -355,6 +357,8 @@ GST_START_TEST (test_sticky_caps_unlinked_incompatible)
|
|||
/* We shouldn't have received any buffers since caps are incompatible */
|
||||
fail_unless_equals_int (g_list_length (buffers), 0);
|
||||
|
||||
gst_check_drop_buffers ();
|
||||
|
||||
gst_caps_replace (&event_caps, NULL);
|
||||
|
||||
ASSERT_OBJECT_REFCOUNT (src, "src", 1);
|
||||
|
@ -412,6 +416,8 @@ GST_START_TEST (test_sticky_caps_flushing)
|
|||
fail_unless (event_caps == caps);
|
||||
fail_unless_equals_int (g_list_length (buffers), 1);
|
||||
|
||||
gst_check_drop_buffers ();
|
||||
|
||||
gst_caps_replace (&caps, NULL);
|
||||
gst_caps_replace (&event_caps, NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue