From 74fb9f0fe2d82e8686ece715c1757dbf2119dfb4 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 24 May 2007 11:50:47 +0000 Subject: [PATCH] tests/check/gst/gstbin.c: Allow refcount of 3 and 4 because some state thread might still be busy with it. Original commit message from CVS: * tests/check/gst/gstbin.c: (GST_START_TEST): Allow refcount of 3 and 4 because some state thread might still be busy with it. --- ChangeLog | 6 ++++++ tests/check/gst/gstbin.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 28e5da2c3b..c76f2d0dea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-05-24 Wim Taymans + + * tests/check/gst/gstbin.c: (GST_START_TEST): + Allow refcount of 3 and 4 because some state thread might still be busy + with it. + 2007-05-24 Tim-Philipp Müller * plugins/elements/Makefile.am: diff --git a/tests/check/gst/gstbin.c b/tests/check/gst/gstbin.c index 4843717e5f..fd5af7286e 100644 --- a/tests/check/gst/gstbin.c +++ b/tests/check/gst/gstbin.c @@ -300,7 +300,9 @@ GST_START_TEST (test_message_state_changed_children) * base_sink_chain has taken a refcount on the sink, and is blocked on * preroll */ ASSERT_OBJECT_REFCOUNT (src, "src", 3); - ASSERT_OBJECT_REFCOUNT (sink, "sink", 3); + /* refcount can be 4 if the bin is still processing the async_done message of + * the sink. */ + ASSERT_OBJECT_REFCOUNT_BETWEEN (sink, "sink", 3, 4); /* 2 or 3 is valid, because the pipeline might still be posting * its state_change message */ ASSERT_OBJECT_REFCOUNT_BETWEEN (pipeline, "pipeline", 2, 3);