nlecomposition: Shutdown children when setting state to NULL
authorThibault Saunier <tsaunier@igalia.com>
Mon, 17 Jun 2019 22:23:43 +0000 (18:23 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Fri, 5 Jul 2019 22:01:51 +0000 (18:01 -0400)
commite903f15380916d7df5de60b141cc3f14b1ad54c0
tree63015ff3685cdf2643cd9c81878bb02eccd032d9
parent351182ba2a1c4ccf357edc8e50e431cb1cab99d8
nlecomposition: Shutdown children when setting state to NULL

Otherwise if we shutdown a composition whith an nested composition
(inside a source in the test) and leak it, we end up with the nested
composition task still running (in READY) which is bad.

Add a test for that which leaks the pipeline on purpose.
plugins/nle/nlecomposition.c
tests/check/nle/nlecomposition.c