gstreamer/tests/check
Edward Hervey ebad8c0094 bin: iterate_sorted: Ensure sources are always returned last
For linked elements, the resulting gst_bin_iterate_sorted() will
properly return elements from sink to sources.

If we have some elements that are not linked, we *still* want to
ensure that we return:
* In priority any sinks
* Last of all any sources
* And in between any element which is neither source nor sink

For this to work, when looking for the next candidate element,
not only check the degree order, but if there are two candidates
with the same degree order, prefer the non-source one.

Amongst other things, this fixes the case where we activating a
bin containing unlinked sources and other elements. Without this
we could end up activating sources (which might start adding pads
to be linked) before other (to which those new source element pads
might be linked) are not activated

https://bugzilla.gnome.org/show_bug.cgi?id=788434
2017-10-03 07:56:39 +02:00
..
elements tee-test: Test a real use case 2017-10-02 14:11:19 -04:00
generic check: Rename states unit test 2015-08-14 11:10:37 +02:00
gst bin: iterate_sorted: Ensure sources are always returned last 2017-10-03 07:56:39 +02:00
libs bytereader: fix peek value when scanning for 00 00 01 with non-0 offset 2017-02-22 11:07:24 +00:00
pipelines tests: fix message leak in seek test 2017-04-19 13:39:46 +01:00
tools tests: refactor tools check a little 2014-10-31 16:10:01 +00:00
.gitignore tests: add check for gst-inspect --exists functionality 2012-09-01 23:02:10 +01:00
Makefile.am tests: rewrite and enable dataurisrc test 2016-11-28 11:19:15 +00:00
meson.build meson: add option to disable tracer hooks 2017-07-05 13:27:48 +01:00