check/ghostpad: Activate pads before checking for caps forwarding/setting
authorEdward Hervey <edward.hervey@collabora.co.uk>
Mon, 6 Jun 2011 08:27:57 +0000 (10:27 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Mon, 6 Jun 2011 08:27:57 +0000 (10:27 +0200)
This is now done via in-band events, so the pads need to be active

tests/check/gst/gstghostpad.c

index 8060185..068a6e9 100644 (file)
@@ -705,6 +705,10 @@ GST_START_TEST (test_ghost_pads_forward_setcaps)
       G_CALLBACK (ghost_notify_caps), &notify_counter);
   fail_unless (gst_pad_link (ghost, sink) == GST_PAD_LINK_OK);
 
+  /* Activate pads for caps forwarding/setting to work */
+  gst_pad_set_active (src, TRUE);
+  gst_pad_set_active (ghost, TRUE);
+
   caps1 = gst_caps_from_string ("meh");
   fail_unless (gst_pad_set_caps (src, caps1));
   caps2 = gst_pad_get_current_caps (ghost);