From: Edward Hervey Date: Mon, 6 Jun 2011 08:27:57 +0000 (+0200) Subject: check/ghostpad: Activate pads before checking for caps forwarding/setting X-Git-Tag: RELEASE-0.11.0~160 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef2d593e402b5ac2393f823f8608cf37e74832d3;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/tests/check/gst/gstghostpad.c b/tests/check/gst/gstghostpad.c index 8060185..068a6e9 100644 --- a/tests/check/gst/gstghostpad.c +++ b/tests/check/gst/gstghostpad.c @@ -705,6 +705,10 @@ GST_START_TEST (test_ghost_pads_forward_setcaps) G_CALLBACK (ghost_notify_caps), ¬ify_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);