[Bug 788434] bin: iterate_sorted: Ensure sources are always returned last

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Oct 3 06:09:44 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=788434

Edward Hervey <bilboed at bilboed.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #360789|accepted-commit_now         |committed
             status|                            |

--- Comment #3 from Edward Hervey <bilboed at bilboed.com> ---
Comment on attachment 360789
  --> https://bugzilla.gnome.org/attachment.cgi?id=360789
bin: iterate_sorted: Ensure sources are always returned last

commit ebad8c0094597c98447d8afb4ba73a757621359f (HEAD -> master, origin/master,
origin/HEAD)
Author: Edward Hervey <edward at centricular.com>
Date:   Mon Oct 2 17:59:17 2017 +0200

    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

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list