collectpads2: Fix unit test to actually work again
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 26 Jan 2012 10:40:53 +0000 (11:40 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 26 Jan 2012 10:40:53 +0000 (11:40 +0100)
tests/check/libs/collectpads2.c

index 97e7f5b..2a04aa2 100644 (file)
@@ -110,6 +110,11 @@ setup (void)
   fail_unless (gst_pad_link (srcpad1, sinkpad1) == GST_PAD_LINK_OK);
   fail_unless (gst_pad_link (srcpad2, sinkpad2) == GST_PAD_LINK_OK);
 
+  gst_pad_set_active (sinkpad1, TRUE);
+  gst_pad_set_active (sinkpad2, TRUE);
+  gst_pad_set_active (srcpad1, TRUE);
+  gst_pad_set_active (srcpad2, TRUE);
+
   cond = g_cond_new ();
   lock = g_mutex_new ();
   data1 = NULL;