diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-04-06 11:38:57 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-04-06 11:41:14 +0100 |
commit | 6a5f8a1b2d128b69f18d47c6eaa4563ebf61d0ef (patch) | |
tree | b678445032320ffa9d26eba348f30603e3a88e91 /tests/check/gst | |
parent | da5d6712a2f36880a7e30f9082976247c6732613 (diff) | |
download | gstreamer-6a5f8a1b2d128b69f18d47c6eaa4563ebf61d0ef.tar.gz |
checks: make tests_many_bins in bin unit test a bit faster
Not doing expensive checks when linking elements makes things
much faster.
Diffstat (limited to 'tests/check/gst')
-rw-r--r-- | tests/check/gst/gstbin.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/check/gst/gstbin.c b/tests/check/gst/gstbin.c index cbc9373efb..ea942a9b9a 100644 --- a/tests/check/gst/gstbin.c +++ b/tests/check/gst/gstbin.c @@ -1099,6 +1099,7 @@ GST_START_TEST (test_many_bins) fail_unless (bin != NULL, "Could not create bin %d", i); identity = gst_element_factory_make ("identity", "identity"); fail_unless (identity != NULL, "Could not create identity %d", i); + g_object_set (identity, "silent", TRUE, NULL); gst_bin_add (GST_BIN (bin), identity); sinkpad = gst_element_get_static_pad (identity, "sink"); srcpad = gst_element_get_static_pad (identity, "src"); @@ -1110,10 +1111,15 @@ GST_START_TEST (test_many_bins) gst_bin_add (GST_BIN (pipeline), bin); if (last_bin == NULL) { - fail_unless (gst_element_link (src, bin)); + srcpad = gst_element_get_static_pad (src, "src"); } else { - fail_unless (gst_element_link (last_bin, bin)); + srcpad = gst_element_get_static_pad (last_bin, "src"); } + sinkpad = gst_element_get_static_pad (bin, "sink"); + gst_pad_link_full (srcpad, sinkpad, GST_PAD_LINK_CHECK_NOTHING); + gst_object_unref (sinkpad); + gst_object_unref (srcpad); + last_bin = bin; |