diff --git a/tests/check/gst/gstpad.c b/tests/check/gst/gstpad.c index 2a6d3488a9..eec9b2e099 100644 --- a/tests/check/gst/gstpad.c +++ b/tests/check/gst/gstpad.c @@ -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);