diff options
author | Edward Hervey <bilboed@bilboed.com> | 2010-06-27 13:44:55 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2010-06-27 13:45:38 +0200 |
commit | aae225629db259217d66486a807f1027b7c79974 (patch) | |
tree | e3a51de3d20c05a35ddb6cbe4bd9f6afca3bbd8e | |
parent | 4ae3f6bcf298b072a6c02188a0b891995d6e2a54 (diff) |
check: Use fast pad linking methods
-rw-r--r-- | tests/check/gnl/common.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/check/gnl/common.h b/tests/check/gnl/common.h index b8ce71d..f0c9fb2 100644 --- a/tests/check/gnl/common.h +++ b/tests/check/gnl/common.h @@ -49,7 +49,8 @@ gst_element_factory_make_or_warn (const gchar * factoryname, const gchar * name) static void composition_pad_added_cb (GstElement *composition, GstPad *pad, CollectStructure * collect) { - fail_if (!(gst_element_link (composition, collect->sink))); + fail_if (!(gst_element_link_pads_full (composition, GST_OBJECT_NAME (pad), collect->sink, "sink", + GST_PAD_LINK_CHECK_NOTHING))); } /* return TRUE to discard the Segment */ @@ -198,7 +199,8 @@ videotest_in_bin_gnl_src (const gchar * name, guint64 start, gint64 duration, gi gst_bin_add (GST_BIN (bin), videotestsrc); gst_bin_add (GST_BIN (bin), alpha); - gst_element_link (videotestsrc, alpha); + gst_element_link_pads_full (videotestsrc, "src", alpha, "sink", + GST_PAD_LINK_CHECK_NOTHING); gst_bin_add (GST_BIN (gnlsource), bin); @@ -235,7 +237,8 @@ audiotest_bin_src (const gchar * name, guint64 start, caps = gst_caps_from_string ("audio/x-raw-float"); gst_bin_add_many (GST_BIN (bin), audiotestsrc, audioconvert, identity, NULL); - gst_element_link (audiotestsrc, audioconvert); + gst_element_link_pads_full (audiotestsrc, "src", audioconvert, "sink", + GST_PAD_LINK_CHECK_NOTHING); fail_if ((gst_element_link_filtered (audioconvert, identity, caps)) != TRUE); gst_caps_unref (caps); |