checks: fix spurious ghost pad check failure
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 27 Jan 2010 00:23:07 +0000 (00:23 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 27 Jan 2010 00:24:49 +0000 (00:24 +0000)
tests/check/gst/gstghostpad.c

index ed22e2f..b78538a 100644 (file)
@@ -376,7 +376,7 @@ GST_START_TEST (test_ghost_pads)
    * all pads */
 
   /* wait for thread to settle down */
-  while (GST_OBJECT_REFCOUNT_VALUE (fsrc) > 2)
+  while (GST_OBJECT_REFCOUNT_VALUE (fsrc) > 1)
     THREAD_SWITCH ();
 
   ASSERT_OBJECT_REFCOUNT (fsrc, "fsrc", 1);