nlecomposition: Optimize prerolling when using nested compositions
authorThibault Saunier <tsaunier@igalia.com>
Thu, 6 Feb 2020 19:42:25 +0000 (16:42 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Wed, 12 Feb 2020 20:50:37 +0000 (17:50 -0300)
commit3c3176516e777aeac22a4018223dc4063f02a599
treef38eed336c5f13a1a87548170a0b0b90d026e0ac
parent32de7d857da591bd118ffe34b8055b1ca3a3d0bd
nlecomposition: Optimize prerolling when using nested compositions

When a composition is nested into anotherone, we *know* that the
toplevel composition is going to send a stack initializing seek,
we can thus avoid sending it on the subcomposition itself when
prerolling. This avoid seeking roundtrips and we now have one and
only one seek travelling in the overall pipeline (after it has
prerolled).
plugins/nle/nlecomposition.c