From 83389aa19740e72acb256cc5977fe4c6b7e1eae3 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 19 May 2011 19:07:29 +0200 Subject: [PATCH] tests: caps are not stored on flushing pads Caps are now also stored on flushing pads in the inactive state. --- tests/check/gst/gstpad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/check/gst/gstpad.c b/tests/check/gst/gstpad.c index dbcd6f4..d16f199 100644 --- a/tests/check/gst/gstpad.c +++ b/tests/check/gst/gstpad.c @@ -131,7 +131,7 @@ GST_START_TEST (test_refcount) /* can't set caps on flushing sinkpad */ fail_if (gst_pad_set_caps (sink, caps) == TRUE); /* one for me and one for each set_caps */ - ASSERT_CAPS_REFCOUNT (caps, "caps", 2); + ASSERT_CAPS_REFCOUNT (caps, "caps", 3); gst_pad_set_active (sink, TRUE); fail_unless (gst_pad_set_caps (sink, caps) == TRUE); @@ -178,7 +178,7 @@ GST_START_TEST (test_get_allowed_caps) sink = gst_pad_new ("sink", GST_PAD_SINK); fail_unless (gst_pad_set_caps (src, caps) == TRUE); fail_if (gst_pad_set_caps (sink, caps) == TRUE); - ASSERT_CAPS_REFCOUNT (caps, "caps", 2); + ASSERT_CAPS_REFCOUNT (caps, "caps", 3); gst_pad_set_active (sink, TRUE); fail_unless (gst_pad_set_caps (sink, caps) == TRUE); -- 2.7.4