check/ghostpad: Activate pads before checking for caps forwarding/setting

This is now done via in-band events, so the pads need to be active
This commit is contained in:
Edward Hervey 2011-06-06 10:27:57 +02:00
parent 4b920eb5d2
commit ef2d593e40

View 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);