nlecomposition: Ensure flushes after seek have the right seqnum
authorThibault Saunier <tsaunier@igalia.com>
Wed, 19 Jun 2019 22:14:52 +0000 (18:14 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Fri, 5 Jul 2019 22:11:04 +0000 (18:11 -0400)
commit1eb05b0b718f44cdeaf4f22237418f04c4d6f7b9
tree14e5e7ae094665b2153002ad773c163cdcbf7683
parente903f15380916d7df5de60b141cc3f14b1ad54c0
nlecomposition: Ensure flushes after seek have the right seqnum

Seeks that lead to a stack change lead to deactivating the current
stack. At that point we explicitely flush downstream as a reaction to
the flushing seek. Until now those flushes had a random seqnum, this
fails if we are a nested compostion as the parent composition will end
up dropping that flush which in turns might lead to deadlocks. For
example, the flush goes through a `compositor` which wants to flush
downstream to stop its srcpad task, but that flush wouldn't have
"released" its srcpad thread if the composition srcpad drops it, meaning
it won't be able to stop the task ever.
plugins/nle/nlecomposition.c